Slide 1

Slide 1 text

Reactor Pattern vs Thread-based(pool) Pattern The Battle of Concurrency Patterns

Slide 2

Slide 2 text

Thread-based(pool) Pattern

Slide 3

Slide 3 text

Thread-based(pool) Pattern CLIENT 1 CLIENT 2 CLIENT 3 CLIENT 4 CLIENT 5 CLIENT 6 THREAD POOL THREAD 1 THREAD 2 THREAD 3 THREAD 4 THREAD 5

Slide 4

Slide 4 text

Reactor Pattern

Slide 5

Slide 5 text

The reactor pattern describes that a single thread runs in a loop to deliver the events to the handlers

Slide 6

Slide 6 text

Reactor Pattern

Slide 7

Slide 7 text

Never blocks the Event Loop

Slide 8

Slide 8 text

Performance

Slide 9

Slide 9 text

Demo

Slide 10

Slide 10 text

What are the disadvantages?

Slide 11

Slide 11 text

What are the advantages of using Reactor Pattern?

Slide 12

Slide 12 text

Debug (Callback)

Slide 13

Slide 13 text

https://github.com/larchanjo /poc-vertx-grpc

Slide 14

Slide 14 text

Questions?

Slide 15

Slide 15 text

Thanks a million! /larchanjo /luram-archanjo