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
DDOS Attacks [not-audio_url] [/not-audio_url]

Duration: 36:56
You've probably heard of DDOS (or Distributed Denial of Service attacks). They are a common scourge of the modern web and are something you will occasionally see if you work on a popular product.Read more ›The post DDOS…
Basics of Git [not-audio_url] [/not-audio_url]

Duration: 50:51
Git is a version control system that allows developers to collaborate on projects, keep track of changes, and easily revert to previous versions if necessary. It's an essential tool for any software developer, but if you…
Explaining Agile To Non Technical CoWorkers [not-audio_url] [/not-audio_url]

Duration: 43:23
While most developers generally have at least a rough idea of what agile means, or at least what it means to them, many non-technical people are a bit puzzled by the term. It's clear that it means a lot of different thin…
404 Personality Not Found [not-audio_url] [/not-audio_url]

Duration: 52:49
It can be easy to say some people, especially developers, don't have personalities. This is far from the truth, even the most robotic of people have some form of personality though it may be difficult to understand. Read…
ChatGPT for Developers [not-audio_url] [/not-audio_url]

Duration: 55:52
OpenAI's transformer-based language model, can improve software development with its natural language processing capabilities and code generation.Read more ›The post ChatGPT for Developers appeared first on Complete Deve…
Breaking Down Goals [not-audio_url] [/not-audio_url]

Duration: 53:02
Setting goals for yourself is a big task, even bigger is actually accomplishing those goals. When a goal is large it can seem overwhelming and unachievable.Read more ›The post Breaking Down Goals appeared first on Comple…
Cross Platform Pitfalls [not-audio_url] [/not-audio_url]

Duration: 45:20
Cross-platform applications are really helpful for many businesses, as they increase the size of the available customer base and make it easier to write code that runs on anything. However, like anything else, there are…
7 Habits of Highly Effective Developers [not-audio_url] [/not-audio_url]

Duration: 50:26
Habits are ways that we simplify our behaviors so that we can do them over and over without much conscious thought. When healthy, habits can help us to grow and improve ourselves.Read more ›The post 7 Habits of Highly Ef…
Software Architecture Mistakes [not-audio_url] [/not-audio_url]

Duration: 45:56
While a good software architect can be tremendously helpful to a team that is in a position to need one, software architects are also frequently in a position to do real damage to a team. In fact, software architecture m…
Social Engineering [not-audio_url] [/not-audio_url]

Duration: 46:19
In this episode we look at the different types of social engineering attacks and the best practices for protecting yourself and your organization.Read more ›The post Social Engineering appeared first on Complete Develope…