Building Event-Driven Java Applications using Redis Streams

C5f6e8dffbb19acf405198c8fb917337?s=47 Mark Paluch
November 15, 2018

Building Event-Driven Java Applications using Redis Streams

Slides to the talk I gave at Redis Day London 2018

Code: https://github.com/mp911de/redis-stream-demo

C5f6e8dffbb19acf405198c8fb917337?s=128

Mark Paluch

November 15, 2018
Tweet

Transcript

  1. 2.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Mark Paluch @mp911de Spring Data Project Lead at !2
  2. 3.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Use Cases !3
  3. 4.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream !4 events 15269848-0 name: Alice 15269858-1 name: John last: Doe 15269858-0 name: Bob
  4. 5.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream !5 events 15269848-0 name: Alice 15269858-1 name: John last: Doe ✕ Body Hash-like ✕ Consumer Groups ✕ Append-Only* 15269858-0 name: Bob
  5. 6.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream API !6 15269848-0 name: Alice 15269858-1 name: John last: Doe 15269858-0 name: Bob XRANGE XTRIM XREAD XADD XLEN events
  6. 7.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ !7 Demo redis-cli
  7. 8.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ !8 Demo Java
  8. 9.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream !9 events
  9. 10.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream: Consumer Groups !10 my-group consumer1: 15269848-0 consumer2: 15269858-0 another-group some-consumer: (offset) events
  10. 11.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream: Consumer Groups !11 my-group consumer1: 15269848-0 consumer2: 15269858-0 another-group some-consumer: (offset) XREADGROUP XGROUP XACK events
  11. 12.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Stream Processing ! Inbound Messages ! Stream Consumer ! Result !12
  12. 13.
  13. 14.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ !14 https://bit.ly/redis-streams
  14. 15.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Resources !Code: github.com/mp911de/redis-stream-demo !Slides: speakerdeck.com/mp911de/building-event-driven-java- applications-using-redis-streams (bit.ly/2RSa4dD) !15 @mp911de /
  15. 16.

    Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,

    Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Thank you! / !16 @mp911de