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
Fixing Your Work Life Balance [not-audio_url] [/not-audio_url]

Duration: 59:26
It's easy to end up overworked. You start out responding to a reasonable need for a little more work to be done after hours, then suddenly it's five years later and you work 65 hours a week until your health and personal…
Web Hooks [not-audio_url] [/not-audio_url]

Duration: 53:23
Webhooks allow you to offload processes to third-party software. Building them has it's own challenges to overcome and a set of best practices to make those challenges easier.Read more ›The post Web Hooks appeared first…
Enneagram Type 1: The Perfectionist [not-audio_url] [/not-audio_url]

Duration: 1:02:02
Bringing the pursuit of perfection and attention to detail, the Enneagram Type 1 or The Perfectionist is a conscientious and ethical personality type. They are committed to a sense of right and wrong, responsibility, and…
Mid Level Developer Mistakes [not-audio_url] [/not-audio_url]

Duration: 59:02
Being a mid-level developer is like being a middle child, or a member of generation X. Everybody forgets about you as you sit there sandwiched between the groups that everyone caters to. However, you still have to get th…
Increase Your Drive [not-audio_url] [/not-audio_url]

Duration: 50:00
Intrinsic drive involves being able to understand and use internal rewards to push yourself. Increasing motivation takes a mindset shift that will change how you look at the world from where you get your energy to the wa…
Temporary Applications [not-audio_url] [/not-audio_url]

Duration: 54:41
We all know that the most permanent solutions come from temporary fixes. In light of this, we could all do a lot better in the way that we write "one off" or "temporary" applications.Read more ›The post Temporary Applica…
Database Network Performance [not-audio_url] [/not-audio_url]

Duration: 49:36
In this episode, we're going to discuss several of the common performance problems that can occur when accessing a database over the network, as well as how to fix them.Read more ›The post Database Network Performance ap…
Enneagram Type 9: The Peacemaker [not-audio_url] [/not-audio_url]

Duration: 1:02:01
The Enneagram of Personality, or just the Enneagram, is a representation of personalities using a geometric figure, also called an enneagram (little e), to express nine interconnected personality types. While each type i…
12 Factors of 12 Factor Apps [not-audio_url] [/not-audio_url]

Duration: 58:36
If you want to deal with the ever increasing complexity of developing cloud-native apps with modern tools, then it behooves you to use industry best practices to develop these apps. Read more ›The post 12 Factors of 12 F…

«1...678910