官术网_书友最值得收藏!

Message Validation

Chapter 1Configuring Kafka, focused on how to set up a Kafka cluster and run a command-line producer and a consumer. Having the event producer, we now have to process those events.

Before going into detail, let's present our case study. We need to model the systems of Monedero, a fictional company whose core business is cryptocurrency exchange. Monedero wants to base its IT infrastructure on an enterprise service bus (ESB) built with Apache Kafka. The Monedero IT department wants to unify the service backbone across the organization. Monedero also has worldwide, web-based, and mobile-app-based clients, so a real-time response is fundamental.

Online customers worldwide browse the Monedero website to exchange their cryptocurrencies. There are a lot of use cases that customers can perform in Monedero, but this example is focused on the part of the exchange workflow specifically from the web application.

This chapter covers the following topics:

  • Modeling the messages in JSON format
  • Setting up a Kafka project with Gradle
  • Reading from Kafka with a Java client
  • Writing to Kafka with a Java client
  • Running a processing engine pipeline
  • Coding a Validator in Java
  • Running the validation

主站蜘蛛池模板: 布拖县| 简阳市| 大关县| 象州县| 宜川县| 武安市| 武平县| 于都县| 大邑县| 旬邑县| 嘉义县| 盐山县| 黄浦区| 霍林郭勒市| 赤壁市| 三亚市| 乐昌市| 金川县| 炎陵县| 大兴区| 井陉县| 铜川市| 苍南县| 东至县| 呼伦贝尔市| 高碑店市| 锡林浩特市| 尼勒克县| 台江县| 北流市| 靖宇县| 玉门市| 攀枝花市| 福州市| 新安县| 石嘴山市| 应城市| 界首市| 横山县| 武平县| 韶关市|