Request-Response

DEMO FILE : https://github.com/PawelWlodarski/workshops-reactive/blob/master/src/main/scala/jug/workshops/reactive/patterns/requestreply/exercises/RequestReplyDemo.scala

EXERCISE FILE : https://github.com/PawelWlodarski/workshops-reactive/blob/master/src/main/scala/jug/workshops/reactive/patterns/requestreply/exercises/SubmitTaskExercises.scala

TEST FILE : https://github.com/PawelWlodarski/workshops-reactive/blob/master/src/test/scala/jug/workshops/reactive/patterns/requestreply/exercises/RequestReplyExercisesSpec.scala

Simple Server

Simple Actor-to-Actor communication with ADT messages.

Delegate

Worker is created per each request. Request is delegated to worker.

Pool

There is a fixed pool of workers.

  • If there is a worker in pool then task is handled immediately
  • If there is no worker in pool then task is stored in queue
  • If worker finished his job and there are tasks in queue then worker handles them immediately

results matching ""

    No results matching ""