Web: https://dev.to/tschuehly/implementing-worker-pools-in-kotlin-to-upload-images-over-webdav-to-a-hetzner-storagebox-2i64

June 22, 2022, 4:02 p.m. | Thomas Schühly

DEV Community dev.to




Worker pools

Recently while doing a project with Go I came across Worker Pools on GoByExample to do parallel processing. I didn't find many resources for implementing Worker Pools in Kotlin, but it seemed a good idea for my current Spring Boot + Kotlin webapp.





Kotlin

Kotlin uses coroutines for concurrency which are fairly similiar to goroutines.


Coroutines use structured concurrency to delimit the lifetime of each coroutine to a certain scope.


To be able to create a workergroup we …

kotlin programming springboot webdev worker

Backend Developer, Artist Services team

@ BandLab Technologies | Remote - Singapore, Singapore, Singapore

Engineering Manager - Underwriting Platform

@ Caribou | Remote - U.S.

Taiwanese Games Tester

@ Pole To Win International | Remote - United Kingdom

Account Executive - Nordics

@ WorkMotion | Remote - Oslo, Oslo, Norway

Customer Success Manager

@ Carbyne | Remote - New York, New York, United States

Senior Software Development Engineer in Test, Mobile

@ Fleetio | Remote - Birmingham, Alabama, United States