File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -27,11 +27,12 @@ Lock the entire resource pessimistically or optimistically (by reading version n
27273 . ** Save resource** to database. Release the pessimistic lock. Or run
2828atomic update with version check (optimistic lock).
2929
30- But such architecture does not scale well if number of requests
30+ But such architecture does not scale well if the number of requests
3131for a single resource is very high
3232(meaning hundreds or thousands of requests per second).
3333The lock contention in such case is very high and database is significantly
34- overloaded. Practically, the number of concurrent requests is limited.
34+ overloaded. Also, round-trips between application server and database add latency.
35+ Practically, the number of concurrent requests is severely limited.
3536
3637One solution to this problem is to reduce the number of costly operations.
3738Because a single resource is loaded and saved thousands of times per second
You can’t perform that action at this time.
0 commit comments