Building Kafka producers and consumers in COBOL

You can build Kafka producers and consumers from sample programs that are included in Open Enterprise SDK for Apache Kafka. This section helps you set up and run the producer and consumer sample programs.

The flow of the program is shown in the following diagram. The COBOL producer and consumer layer programs that call the Kafka APIs must be AMODE 64 programs that were compiled with the LP(64) compiler option. The sample COBOL AMODE 64 layer programs are IXYSPROD (producer), IXYSPRDS (producer for SSL), and IXYSCONS (consumer). COBOL AMODE 31 and 64 application programs can communicate with the COBOL producer and consumer layers that are built with COBOL AMODE 64 programs. The sample COBOL AMODE 31 programs are IXYPRD31 (producer) and IXYCON31 (consumer).Workflow diagram on how IBM Open Enterprise SDK for Apache Kafka allows COBOL applications to publish and consume messages.

Note: The current version of Open Enterprise SDK for Apache Kafka is supported within batch application environments and within IMS application environments. The current version is not supported within CICS application environments.