PodParley PodParley

API Anti-Patterns

These days, most applications available on the web are expected to have an API. Not only do web frontends often need API access, but APIs are increasingly used by clients as well to integrate with other applications they have.Read more ›

An episode of the Complete Developer Podcast podcast, hosted by BJ Burns and Will Gant, titled "API Anti-Patterns" was published on May 25, 2023 and runs 50 minutes.

May 25, 2023 ·50m · Complete Developer Podcast

0:00 / 0:00

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.LinksJoin Us On PatreonLevel Up Financial Planning The post API Anti-Patterns appeared first on Complete Developer Podcast. Hosted on Acast. See acast.com/privacy for more information.

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.

Wellness Wisdom Sharon Whitefawn Sharon is a holistic health professional who has developed a complete wellness approach based on her life experiences, challenges, and healing journey. In this podcast, she shares positive golden nuggets of wellness wisdom that will inspire optimal health, fitness, and wellness - mind, body, and spirit. #100DaysOfCode Motivation Podcast Treehouse A podcast of motivational messages from software engineers, engineering leadership, Treehouse staff, Influencers, tech executives, and more – to inspire and help aspiring developers stay on track to complete the #100DaysofCode challenge.Go to join.teamtreehouse.com/100-days-of-code to launch your #100DaysOfCode Challenge with Treehouse today! Immortal Index: A Xianxia & Wuxia Fan Podcast Immortal Index Podcast The Immortal Index is A Podcast show discussing Chinese webnovel translations of "Xianxia" and/or "Wuxia" - hosted by @StephenLemieux and produced alongside AfterBuzz TV, Rate and comment for a shout out on on the show; and tell me what you'd like to talk about!Xianxia: a type of Chinese Martial Arts novel genre developed from the Wuxia genre that is heavily influenced by Taoism and Buddhism. ... Contrary to the Wuxia genre, Xianxia novels have more elements of fantasy, complete with magic, demons, ghosts and immortals. FivesSquared's podcast Timothy Fives Today's ever-changing business landscape requires companies to continually evolve by adopting increasingly smarter and more efficient solutions to remain competitive. Strategic work "on the business" and not just "in the business" must be a priority for leaders looking to drive measurable, strategic growth. FivesSquared specializes in integrated business and technology consulting driven by the belief: smart solutions must be developed based on strategic goals and driven by smart tools. From foundational organizational structure and core process development through technology, to the software selection process and on-site integration, FivesSquared offers for-profit and nonprofit organizations a complete suite of customizable advisement services.​We understand every organization is facing unique internal and external circumstances and that for-profit and nonprofit organizations have particular needs specific to their operational and financial goals. Our customizable services offer f
URL copied to clipboard!