How to Build 1 Million Requests per Minute with Golang

Go: the Great Stack for high load applications

Ratings 2.01 / 5.00
How to Build 1 Million Requests per Minute with Golang

What You Will Learn!

  • In the end of my course you will learn how to build a application with Go. You get knowliges in building high load application in which you organized the application logic into multiple packages to easily maintain the application.

Description

The Problem

While working on a piece of our anonymous telemetry and analytics system, our goal was to be able to handle a large amount of POST requests from millions of endpoints. The web handler would receive a JSON document that may contain a collection of many payloads that needed to be written to Amazon S3, in order for our map-reduce systems to later operate on this data.

Traditionally we would look into creating a worker-tier architecture, utilizing things such as:

  • Sidekiq

  • Resque

  • DelayedJob

  • Elasticbeanstalk Worker Tier

  • RabbitMQ

  • and so on…

And setup 2 different clusters, one for the web front-end and another for the workers, so we can scale up the amount of background work we can handle.

But since the beginning, our team knew that we should do this in Go because during the discussion phases we saw this could be potentially a very large traffic system. I have been using Go for about 2 years or so, and we had developed a few systems here at work but none that would get this amount of load.

Conclusion

Simplicity always wins in my book. We could have designed a complex system with many queues, background workers, complex deployments, but instead we decided to leverage the power of Elasticbeanstalk auto-scaling and the efficiency and simple approach to concurrency that Golang provides us out of the box.


It’s not everyday that you have a cluster of only 4 machines, that are probably much less powerful than my current MacBook Pro, handling POST requests writing to an Amazon S3 bucket 1 million times every minute.

Who Should Attend!

  • It can be helpful from high school level

TAKE THIS COURSE

Tags

  • Application Performance Management

Subscribers

47

Lectures

8

TAKE THIS COURSE



Related Courses