"Think" If you need higher concurrency

Source: Internet
Author: User

Q: Imagine a scenario. GPs dot, very often. The post is immediately uploaded to the backend. The backend needs to be displayed to the front end immediately.

Two system AB.

A system A that is specifically responsible for depositing to a redis cluster.

A system B, specifically responsible for reading Redis clusters at intervals, and then transferring them to MySQL for a long time. (20s interval, or, tolerate more intervals of loss.) )

System B is only for long-lasting and lasting.

A system is responsible for "display" and "upload", i.e. "read", "write"

"Write" as a bottleneck.

1. Pyhton+c + redis + nginx + http

2. Python+c + Redis + nginx + socket

3. Openrestry (also appears to have C) + Redis + http

4. Openrestry (also appears to have C) + Redis + tcp\udp

As much as possible to weaken the performance impact of the framework, put the pressure on the Redis cluster (client hash cluster).

Redis operation and maintenance capabilities

Openrestry operation and maintenance capability

"Think" If you need higher concurrency

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.