Java generally handles high concurrency technical means

Solutions to deal with high concurrency:

1. Put pressure on the database and add row-level locks.

select * from table for update;

2. Put the pressure on the application and add synchronized synchronization to the method.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324668320&siteId=291194637