Mysql will process multiple simultaneous insertion requests one by one, maintaining a maximum of 1000 request queues.
Mongodb handles multiple insertion requests arriving at the same time in the same way as mysql, or can it insert multiple requests at the same time without queuing?
There are queues, but WiredTiger’s locks are document-level, so only when a request attempts to update the same document will there be an actual “lock”. The rest of the time is written to the database as quickly as possible. In general, the queue cannot be too long unless the hardware is limited, and the experience value is within 10 in most cases. Therefore, there are only 128 Tickets with 128 reads and 128 writes in WT, so it is possible to read and write only when the ticket is received.