Sign in
Log inSign up

handelling 10M requests per day

Amir Salar Pourhasan's photo
Amir Salar Pourhasan
·Oct 22, 2018

We have a service that revises over 10 million requests per day. the first image is the structure of the current situation:

img1.jpg

We have some problems now. The main part that contains PHP, Mysql is not scalable and we can not change that part at all. But we want to add a new layer before that.

In the next picture, you see a new model that contains Nodejs and Redis and MongoDB as a new layer here. Every query that has been done on MySQL also has been done on MongoDB. I mean now we have a MongoDB that has synced data by MySQL completely. We want to bring an auth layer before Mysql in MongoDB and Nodejs because this layer is scalable for us.

Nodejs will forward only valid requests to next part.

img2.jpg

Is Nodejs a good choice here? Or it`s better to use Go Lang instead. Or Scala or Elixir or Rust? Is this model efficente in general? Will it work? What is your suggestion?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct