EP110: Top 5 Strategies to Reduce Latency

This week’s system design refresher:


New Relic AI monitoring, the industry’s first APM for AI, now generally available (Sponsored)

New Relic AI monitoring provides unprecedented visibility and insights to engineers and developers who are modernizing their tech stacks. With New Relic AI monitoring, engineering teams can monitor, alert, debug, and root-cause AI-powered applications.

Get started


Top 5 Strategies to Reduce Latency

10 years ago, Amazon found that every 100ms of latency cost them 1% in sales.

That’s a staggering $5.7 billion in today’s terms.

For high-scale user-facing systems, high latency is a big loss of revenue.

No alternative text description for this image

Here are the top strategies to reduce latency:

  1. Database Indexing

  2. Caching

  3. Load Balancing

  4. Content Delivery Network

  5. Async Processing

  6. Data Compression

Over to you: What other strategies to reduce latency have you seen?


Load Balancer Realistic Use Cases You May Not Know

Load balancers are inherently dynamic and adaptable, designed to efficiently address multiple purposes and use cases in network traffic and server workload management.

No alternative text description for this image

Let's explore some of the use cases:

  1. Failure Handling:
    Automatically redirects traffic away from malfunctioning elements to maintain continuous service and reduce service interruptions.

  2. Instance Health Checks:
    Continuously evaluates the functionality of instances, directing incoming requests exclusively to those that are fully operational and efficient.

  3. Platform Specific Routing:
    Routes requests from different device types (like mobiles, desktops) to specialized backend systems, providing customized responses based on platform.

  4. SSL Termination:
    Handles the encryption and decryption of SSL traffic, reducing the processing burden on backend infrastructure.

  5. Cross Zone Load Balancing:
    Distributes incoming traffic across various geographic or network zones, increasing the system's resilience and capacity for handling large volumes of requests.

  6. User Stickiness:
    Maintains user session integrity and tailored user interactions by consistently directing requests from specific users to designated backend servers.

Over to you:
Which of these use cases would you consider adding to your network to enhance system reliability and why?


Latest articles

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

  1. Unlocking the Power of SQL Queries for Improved Performance

  2. What Happens When a SQL is Executed?

  3. A Crash Course in API Versioning Strategies

  4. Embracing Chaos to Improve System Resilience: Chaos Engineering

  5. A Crash Course in CI/CD

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

Subscribe now


Top 4 Data Sharding Algorithms Explained

graphical user interface, application

We are dealing with massive amounts of data. Often we need to split data into smaller, more manageable pieces, or “shards”. Here are some of the top data sharding algorithms commonly used:


Top 8 C++ Use Cases

C++ is a highly versatile programming language that is suitable for a wide range of applications.

graphical user interface, application

Over to you - What did we miss?


Apache Kafka in 100 Seconds

This post is written by guest author Sanaz Zakeri, who is a Senior Software Engineer @Uber.

Apache Kafka is a distributed event streaming platform used for building real-time data processing pipelines and streaming applications. It is highly scalable, fault-tolerant, reliable, and can handle large volumes of data.

Image

In order to understand Kafka, we need to define two terms:

Kafka can be used as a Messaging in a publish-subscribe model, where producers write event streams, and consumers read the events. This publish-subscribe model enables decoupling of event stream producers and consumers. Also, Kafka can be used as a log aggregation platform, ingesting and storing logs from multiple sources in a durable and fault-tolerant way.


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].