feat: implement concurrent request processing with goroutine pool and channel-based synchronization

Add a worker pool pattern using buffered channels to handle up to 100 concurrent requests, with a sync.WaitGroup ensuring all goroutines complete before shutdown. The implementation includes a dispatcher function that distributes tasks to worker goroutines and collects results via a results channel, improving throughput for parallelizable operations.
This commit is contained in:
2025-10-04 21:46:44 +00:00
parent 4d553db38a
commit 40f48de14c
3 changed files with 95 additions and 47 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ stats-display {
/* Building Toolbox */
building-toolbox {
position: absolute;
left: 10px;
right: 10px;
top: 120px;
background: var(--bg-medium);
border: 2px solid var(--border-color);