API Anti-Patterns

API Anti-Patterns

Author: BJ Burns and Will Gant May 25, 2023 Duration: 50:58

APIs are a huge part of development today and one of the most common types of API out there is a RESTful API. REST stands for representational state transfer, which is a software architecture that imposes conditions on how an API should work. Essentially, it was created as a set of guidelines for how communications should work between disparate systems on a complex communication network (like the internet). REST is implemented atop HTTP and uses the standards in the underlying protocol as part of the standards for communication. In a RESTful API, client and server applications are considered to be independent, that is, details from one should not leak into the other, to the extent possible. This also implies that API calls for the same resource should look the same regardless of where they come from – indeed this is required to decouple the client and the server.

RESTFul APIs are built around the inherent statelessness of HTTP. That is, a persistent connection between the client and server is not assumed. This has profound architectural implications in regards to how resources are accessed and mutated. In order to make this disconnected architecture perform well across the internet, this also means that caching will be used heavily. Caching implies further architectural constraints around resource access, as well as careful coding server side to ensure that items are cached (and removed from cache) appropriately. This helps both client side speed and server side scalability. In addition, the lack of a session makes it far easier to spread a workload across multiple servers, as there is no need to synchronize state between them or keep sessions sticky.

Restful APIs are pretty much bog standard web technology at this point. Not only do complex frontends use them, but clients, QA, and other parts of your own system will often do so as well. While Rest APIs are generally standard at this point, there are a lot of mistakes you can make when designing them that make it harder to use your API, create excess load on the server, or just generally increase the frustration level of all involved parties. Certain antipatterns also look good initially, but end up causing problems later when your system gets more users, or more HTTP savvy integrators working with it. We hope this brief overview is enough to save you some time up front on your next API project.

The post API Anti-Patterns appeared first on Complete Developer Podcast.


Hosted on Acast. See acast.com/privacy for more information.


BJ Burns and Will Gant host the Complete Developer Podcast, a conversation that goes far beyond just writing code. These two seasoned developers built this show from a simple idea: that a career in tech is about more than the latest framework or language syntax. It's about the entire ecosystem you navigate, from the logic on your screen to the dynamics of the business meetings and the long-term path of your career. Each episode feels like pulling up a chair in the break room with colleagues who get it, discussing the real, often unspoken, parts of the job. You'll hear them tackle the intersection of technology, business strategy, and professional growth, making sense of how these pieces fit together in a practical, everyday way. This podcast digs into the questions that don't always have a clear answer in a manual-how to communicate effectively with non-technical teams, ways to approach career advancement, or how to balance deep technical work with the broader goals of a company. It's a resource for anyone who writes code but lives in a much bigger world, offering perspective and discussion that aims to make the whole journey a bit more comprehensible and a lot more manageable. Tune in for thoughtful, grounded talks that treat development as the multifaceted profession it truly is.
Author: Language: English Episodes: 100

Complete Developer Podcast
Podcast Episodes
Package Management [not-audio_url] [/not-audio_url]

Duration: 38:18
While you probably have lots of code in your codebase that you are proud of, it's almost certain that you didn't write all or even most of the code that executes while your application is running. Code reuse has always b…
Time Management Resilience [not-audio_url] [/not-audio_url]

Duration: 49:24
Your time is the most valuable and most scarce resource that you have. If you don't protect it and use it appropriately, everything else that you want from your life is out of your reach. It is critically important to pr…
Understanding Memory [not-audio_url] [/not-audio_url]

Duration: 38:58
Understanding memory can be a tricky thing, especially the deeper into a computer system you get. To help understand it a hierarchy of memory was conceptualized. This triangular shape helps to visualize the different lev…
Bad Abstractions [not-audio_url] [/not-audio_url]

Duration: 38:58
Developers like to abstract things. Abstraction gives us a lot of benefit, but there are times when we need to reign in our enthusiasm for it. It's past time we discussed when abstractions are not useful or are actively…
Discipline to Achieve Your Goals [not-audio_url] [/not-audio_url]

Duration: 42:59
We are reaching the time of year when resolutions and goals start to fall away. Being disciplined is an inconvenience, it's hard work but to reach big goals we need to be disciplined in what it takes to achieving goals.R…
Deployment Resilience [not-audio_url] [/not-audio_url]

Duration: 40:18
Writing all this code is fun, but when you have to actually deploy, it can be nerve-wracking. A bad deployment can result in corrupted data, system failures, angry customers and hours of wasted time. Avoiding busted depl…
Learning Plateaus [not-audio_url] [/not-audio_url]

Duration: 40:44
When we are learning something new, we will all eventually hit a roadblock. Roadblocks are tough to deal with, because they sap your enthusiasm. Left alone long enough, they'll make you give up on your goals.Read more ›T…
Aging With Grace [not-audio_url] [/not-audio_url]

Duration: 43:25
Ageism in development is a real thing in some areas of the industry and a concern for senior developers becoming more senior.Read more ›The post Aging With Grace appeared first on Complete Developer Podcast. Hosted on Ac…
Going From Windows to Mac [not-audio_url] [/not-audio_url]

Duration: 48:21
You've bitten the bullet and decided to pay the Apple Tax or maybe you are considering the transition. Switching from Windows to using a Mac may seem a bit daunting, especially if you've been on Windows for decades. Howe…
The Five R’s of Resilience [not-audio_url] [/not-audio_url]

Duration: 41:58
If anything, the last two years has taught us that we all have to be prepared for sudden disruptions to our lives. You have probably also heard that being resilient is the key to doing so, but what does that actually mea…