When designing an API for your Application Frontend, what is your rule of thumb?

For further actions, you may consider blocking this person and/or reporting abuse
When designing an API for your Application Frontend, what is your rule of thumb?
For further actions, you may consider blocking this person and/or reporting abuse
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.
keploy -
Jaime -
Velan<> -
Velan<> -
Top comments (8)
These are some rules i apply that may not suit everyone:
Make it save for ways you dont think about in the first way.
Don't make me think.
Keep it consistent. (Used patterns and naming)
Don't make the frontend do the data processing.
Do one task, and do it right, don't overthink it.
If you want a rule that's less verbal and more technical, refer to SOLID principles.
Make it functional not technical, because the underlying technic can change more often than the desired function.
Use the Open API standard with Swagger to simplify documentation and allow developers and users to work with it in a meaningful way.
Modularity. Each part has its own resposaility (easy to maintain)