Amrut Patil

How did McDonald’s scale their food delivery platform to serve 64 million people daily?

From handling 20,000 orders per second to ensuring high availability, here’s how McDonald’s architected their system.

Dive in.

1/ Hexagonal Architecture

McDonald’s uses hexagonal architecture to separate core application logic from external services.

This ensures modularity and maintainability.

2/ Event-Driven Architecture

They employ event-driven architecture for loose coupling and modularity.

Events are published to a message broker and consumed by various services.

3/ Schema Registry

To maintain well-defined contracts for events, they use a schema registry.

This helps with schema validation and performance caching.

4/ Standby Database

A standby database prevents data loss if the message broker fails.

Events are written to the standby and published once the broker is healthy.

5/ Dead-Letter Topic

Events that fail schema validation are routed to a dead-letter topic for further inspection and correction.

6/ Handling Orders

They handle 20,000 orders per second with sub-100ms latency using a combination of reverse proxy servers, SQL databases, and Redis for caching.

7/ Loyalty Rewards

User actions like applying loyalty points are published to a message queue.

This allows asynchronous processing and ensures exactly-once transactions.

8/ Validating Orders

WebSocket connections handle real-time order validation.

Orders are validated against available inventory using serverless functions and in-memory caching.

9/ Feedback and Improvement

User feedback is collected via surveys and social media.

Data is processed using ETL and analyzed with NLP for sentiment analysis.

10/ Continuous Improvement

They use smoke testing, circuit breaker logic, and automation to ensure resilience and reduce operational efforts.

Scaling a food delivery platform is no easy feat.

McDonald’s approach ensures high performance, availability, and customer satisfaction.

——

Did you like this post?

1/ 📌 Follow for more insights.

2/ 💾 Subscribe to The Cloud Playbook newsletter (Link in profile)

1 year ago | [YT] | 0

Amrut Patil

Ever wondered how Dropbox scales its architecture for millions of users?

From handling 21TB of data to syncing files across devices, here’s a deep dive into their robust system.


1/ Dropbox’s core challenge

Efficiently synchronizing files for 100,000 users with just 9 engineers!

They manage millions of file synchronizations daily while ensuring high availability and minimal latency.

2/ Uploading & Downloading Files

Dropbox clients watch for file changes and handle upload/download logic.

Files are broken into 4MB chunks to minimize bandwidth usage and resume interrupted transfers easily.

3/ Efficient Storage

Each chunk is hashed with SHA-256 to prevent duplicate storage.

If two chunks have the same hash, they’re stored once in Amazon S3, reducing costs.

4/ Synchronizing Files

Metadata databases on both client and server sides store file info.

MySQL handles metadata, while S3 stores file data.

A caching layer with Memcached boosts scalability.

5/ Meta Service & Notification

The meta service syncs file metadata between client and server, broadcasting changes via the notification service.

Clients keep an open connection using Server-Sent Events (SSE).

6/ Scalability

Multiple instances of services run for high availability.

Load balancers distribute the load evenly, with hot backups ready to take over in case of failure.

7/ Reconnecting Clients

To avoid spikes in server load, Dropbox uses exponential backoff for client reconnections, adding delays after each failed attempt.

8/ Magic Pocket

Dropbox replaced S3 with its in-house storage system, Magic Pocket, for better performance and customization.

This move highlights their commitment to innovation and efficiency.

Dropbox’s architecture is a masterclass in scaling and efficiency.

By separating upload/download and sync functionalities, they ensure high performance and reliability.

——

Did you like this post?

1/ 📌 Follow for more insights.

2/ 💾 Subscribe to The Cloud Playbook newsletter (Link in profile)

1 year ago | [YT] | 0

Amrut Patil

3 AWS native security services tips you should hang on your wall:

•Use AWS Security Hub to centralize security management cost-effectively

•Implement AWS CloudTrail for comprehensive logging at a lower cost

•Enable AWS WAF to protect your web applications economically

1 year ago | [YT] | 0

Amrut Patil

Which method for creating an EKS cluster will work best with your workflow?

A. AWS Management Console
B. AWS CLI
C. eksctl
D. I have used a different provisioning tool (Which one?)

1 year ago | [YT] | 0

Amrut Patil

3 must-know AWS security tips to remember:

• Control access seamlessly with AWS Identity and Access Management (IAM)
• Guard against DDoS attacks free with AWS Shield
• Ensure continuous compliance using AWS Config without third-party tools

1 year ago | [YT] | 0

Amrut Patil

Even if you are new to AWS Cloud security, you can still:

• Enable AWS Security Hub
• Use AWS Config for compliance checks
• Implement AWS CloudTrail for detailed logs
• Automate security assessments with AWS Inspector
• Set up real-time alerts with Amazon GuardDuty

1 year ago | [YT] | 0

Amrut Patil

Unforgettable lessons after using AWS security features for 3 years:

•Automation saves significant time
•Consistency is key for compliance
•Manual updates are prone to errors
•AWS tools simplify patch management

1 year ago | [YT] | 0

Amrut Patil

The best examples of AWS security features avoiding hassle:

• AWS Systems Manager automating patch updates
• AWS Config ensuring compliance
• AWS Lambda automating custom scripts
• AWS Inspector identifying vulnerabilities

What others would you add?

1 year ago | [YT] | 0

Amrut Patil

Struggling with time-consuming security audits?

Here’s why AWS Cloud security is your game-changer:

• Pre-built frameworks slash setup time

• Centralized management streamlines oversight

• Instant reports turbocharge audits

• Proactive threat detection locks in compliance

1 year ago | [YT] | 0

Amrut Patil

Even if you are new to AWS Cloud security, you can still:

• Enable AWS Security Hub
• Use AWS Config for compliance checks
• Implement AWS CloudTrail for detailed logs
• Automate security assessments with AWS Inspector
• Set up real-time alerts with Amazon GuardDuty

1 year ago | [YT] | 0