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
Positive Affirmations [not-audio_url] [/not-audio_url]

Duration: 38:03
Words have power, whether you choose or harness it or not. What we say about ourselves, our affirmations, define who we are and how we see ourselves. Negative self-talk brings us down, whereas positive affirmations lift…
Knowledge Silos [not-audio_url] [/not-audio_url]

Duration: 41:40
Knowledge silos happen when different parts of a team understand different parts of a system and don't understand other parts of the system. It's a natural state of system growth, but eventually gets in the way of innova…
Predictions 2022 [not-audio_url] [/not-audio_url]

Duration: 51:31
It's been a long year for many of us, with both upsides and downsides and we're excited to see what happens next year. This is the last episode of 2021.Read more ›The post Predictions 2022 appeared first on Complete Deve…
Resolutions 2022 [not-audio_url] [/not-audio_url]

Duration: 59:43
2021 was not the year we expected, but it definitely brought about some changes in us, in the podcast, and in those around us. As we review our resolutions we'll see how SMART our goals really were and then we'll discuss…
Sample Data Generation [not-audio_url] [/not-audio_url]

Duration: 58:48
While you can test with production data, that data is often sensitive, or doesn't reflect every possible scenario that might come up, especially with new changes. If you want to avoid unexpected problems, then you need t…
Anti-Patterns In Unit Testing [not-audio_url] [/not-audio_url]

Duration: 55:56
Unit testing can be a challenge especially when you have automated testing or may be new to test driven development. There are several great design patterns for testing and even more anti-patterns in unit testing that yo…
Dealing With Stress At Work [not-audio_url] [/not-audio_url]

Duration: 56:35
Everyone experiences work stress at some point or another in their careers. Understanding it can help you to have better responses as well as prepare yourself for it before it becomes an issue.Read more ›The post Dealing…
Enneagram Wrap Up [not-audio_url] [/not-audio_url]

Duration: 57:47
This has been the year of the Enneagram for Complete Developer Podcast. You learned about reformist ones, individualist fours, loyalist sixes, or peacemaking nines, you've heard about all the types and their variants. Bu…
Risks of Older Code [not-audio_url] [/not-audio_url]

Duration: 55:58
Every so often, you'll end up working for a company that uses very outdated technology. While the reasons for this are numerous, many of these companies don't really see the problem with the technology they are using, es…
Essentials of Debugging [not-audio_url] [/not-audio_url]

Duration: 56:01
Debugging software can be a pain or an exciting adventure. If you have unit tests your process may be easier when user testing or quality assurance finds a bug in your code.Read more ›The post Essentials of Debugging app…