How to solve the problem of high traffic concurrency in Java?

Source: Internet
Author: User

Some points to note:

  1. Try to use the cache, including user cache, information cache, etc., spend more memory to do the cache, can reduce the interaction with the database, improve performance.

  2. Use tools such as Jprofiler to identify performance bottlenecks and reduce additional overhead.

  3. Optimize database query statements to reduce direct generation statements using tools such as hibernate (only long-time queries are optimized).

  4. Optimize the database structure, do more indexing, improve query efficiency.

  5. Statistical functions as far as possible cache, or according to a daily statistical or timing statistics related reports, to avoid the need for statistical functions.

  6. Use static pages wherever possible, reducing the parsing of containers (as much as possible to generate static HTML for dynamic content display).

  7. After solving the above problems, use the server cluster to solve the bottleneck problem of single station.

Basically solves the above problem, achieves the system optimal.

First, web acceleration related technology
1. Mirror site
2.DNS Load Balancing
3.CDN Content Distribution
Second, the Network acceleration technology
1. Load balancing (software load balancing, hardware load balancing)
2. Web cache server
3. web/Application Server Distributed File system
4. Distributed Database (database master-slave distribution, database segmentation, Database Cache)

How to solve the problem of high traffic concurrency in Java?

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.