EP100: Polling vs. Webhooks

This week’s system design refresher:


😘 Kiss bugs goodbye with fully automated end-to-end test coverage (Sponsored)

QA Wolf offers a cost-effective approach to getting 80% test coverage in just 4 months. And they guarantee zero flakes.

They build and maintain your test suite in Playwright + include unlimited parallel test runs on their infrastructure. The benefit? No more manual e2e testing, no more slow QAcycles, and no more bugs.

QA Wolf has multiple case studies of customers saving $200k+/year in QA engineering and infrastructure costs. Schedule a demo to learn more.

PS: They have a 4.8/5 star rating on G2.

Learn more


Polling vs. Webhooks

diagram

So, when to use Polling or Webhook?
Polling is a solid option when there is some infrastructural limitation that prevents the use of webhooks. Also, with webhooks there is a risk of missed notifications due to network issues, hence proper retry mechanisms are needed.

Webhooks are recommended for applications that need instant data delivery. Also, webhooks are efficient in terms of resource utilization especially in high throughput environments.


Latest articles

If you’re not a paid subscriber, here’s what you missed this month.

  1. How to Design a Good API?

  2. How do We Design for High Availability?

  3. Good Code vs. Bad Code

  4. Mastering Design Principles - SOLID

  5. A Crash Course in Networking

To receive all the full articles and support ByteByteGo, consider subscribing:

Subscribe now


How do we manage configurations in a system?

The diagram shows a comparison between traditional configuration management and IaC (Infrastructure as Code).

diagram

What is CSS (Cascading Style Sheets)?

No alt text provided for this image

Front-end development requires not only content presentation, but also good-looking. CSS is a markup language used to describe how elements on a web page should be rendered.


What is GraphQL? Is it a replacement for the REST API?

The diagram below explains different aspects of GraphQL.

No alt text provided for this image

GraphQL is a query language for APIs and a runtime for executing those queries by using a type system you define for your data. It was developed internally by Meta in 2012 before being publicly released in 2015.

Unlike the more traditional REST API, GraphQL allows clients to request exactly the data they need, making it possible to fetch data from multiple sources with a single query. This efficiency in data retrieval can lead to improved performance for web and mobile applications.

GraphQL servers sit in between the client and the backend services. It can aggregate multiple REST requests into one query. GraphQL server organizes the resources in a graph.

GraphQL supports queries, mutations (applying data modifications to resources), and subscriptions (receiving notifications on schema modifications).

Benefits of GraphQL:

  1. GraphQL is more efficient in data fetching.

  2. GraphQL returns more accurate results.

  3. GraphQL has a strong type system to manage the structure of entities, reducing errors.

  4. GraphQL is suitable for managing complex microservices.

Disadvantages of GraphQL


SPONSOR US

Get your product in front of more than 500,000 tech professionals.

Our newsletter puts your products and services directly in front of an audience that matters - hundreds of thousands of engineering leaders and senior engineers - who have influence over significant tech decisions and big purchases.

Space Fills Up Fast - Reserve Today

Ad spots typically sell out about 4 weeks in advance. To ensure your ad reaches this influential audience, reserve your space now by emailing [email protected]