DEV Community

Graham Cox
Graham Cox

Posted on

2

Do you need hypermedia?

TL;DR - no.

Hypermedia is all the rage these days. New hypermedia APIs and standards are popping up all the time. But do you need to actually bother?

Hypermedia is hard. It's not just a case of adding URIs to your response and your done. There's all sorts of complexity if you are going to do it right, from the URL structure to the payload structure even to the declared media types.

If you are adding public API support onto an existing application that had an existing user base and an existing, or strong potential for, developer base then yes, hypermedia is probably a good idea.

If you're just starting, and have no product or users or anything yet, hypermedia is going to be more cost than benefit. It will slow you down, and make your end product more complicated to develop and maintain, and there will be no benefit. By the time you have all those things that make it a benefit, you'll understand your domain better and be better placed to do hypermedia properly.

API Trace View

How I Cut 22.3 Seconds Off an API Call with Sentry

Struggling with slow API calls? Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay