EP59: 90% Cost Slash: From Serverless to Monolith

This week's system design refresher:


Meet New Relic Grok, the World’s First Generative AI Observability Assistant (Sponsored)

New Relic Grok makes it easy for you to get the insights you need without having to make sense of tons of telemetry data. Cut through the noise to get the right answers quickly and easily. New Relic Grok leverages OpenAI’s large language models (LLMs) so that any engineer can use plain language and a familiar chat interface to ask questions and get insights, without any prior observability experience. Observability is now as simple as asking New Relic Grok, “Why is my cart not working?” or “Instrument AWS.”

Ready to grok? Request early access


Top 7 Most-Used Distributed System Patterns

Which additional patterns have we overlooked?


Amazon Prime Video Monitoring Service

Why did Amazon Prime Video monitoring move from serverless to monolithic? How can it save 90% cost? 

The diagram below shows the architecture comparison before and after the migration. 

diagram

What is Amazon Prime Video Monitoring Service? 

Prime Video service needs to monitor the quality of thousands of live streams. The monitoring tool automatically analyzes the streams in real time and identifies quality issues like block corruption, video freeze, and sync problems. This is an important process for customer satisfaction. 

There are 3 steps: media converter, defect detector, and real-time notification. 

Over to you: Does microservice architecture solve an architecture problem or an organizational problem?


How to choose between RPC and RESTful?

table

Communication between different software systems can be established using either RPC (Remote Procedure Call) or RESTful (Representational State Transfer) protocols, which allow multiple systems to work together in distributed computing.

The two protocols differ mainly in their design philosophy. RPC enables calling remote procedures on a server as if they were local procedures, while RESTful applications are resource-based and interact with these resources via HTTP methods.

When choosing between RPC and RESTful, consider your application's needs. RPC might be a better fit if you require a more action-oriented approach with custom operations, while RESTful would be a better choice if you prefer a standardized, resource-based approach that utilizes HTTP methods.

Over to you: What are the best practices for versioning and ensuring backward compatibility of RPC and RESTful APIs?


How much storage could one purchase with the price of a Tesla Model S?

There's a trade-off between the price of a storage system and its access latency. Naturally, one might wonder how much storage could be obtained if one is willing to sacrifice latency.

No alternative text description for this image

To make this calculation more intriguing, let's use the price of a Tesla Model S as a benchmark. Here are the relevant prices:


Join the ByteByteGo Talent Collective

If you’re looking for a new gig, join the collective for customized job offerings from selected companies. Public or anonymous options are available. Leave anytime.

If you’re hiring, join the ByteByteGo Talent Collective to start getting bi-monthly drops of world-class hand-curated engineers who are open to new opportunities.