Logo
  • Products
    • SecOps Studio
  • Solutions
    • Pega Stack Shifter
  • Services
    • Pega Enablement
    • Pega Modernization
  • About
  • Contact
  • Blog
Code Vault

Kafka – Part 6 – Configure Kafka Server instance in Pega

December 10, 2024 Code Vault Curators

In another blog article on queue processor, we saw that Pega internally has its native Kafka server to perform stream processing. It is recommended to visit the Kafka articles in order for better understanding.

https://myknowtech.com/tag/kafka

In this blog article, we will see how Pega can make a connection to an external Kafka server.

This tutorial is implemented using Pega personal edition 8.4, but the core concepts remain the same in higher versions as well

Business scenario: A banking organization ABC uses Pega infinity to facilitate their sales process. Whenever a loan is issued, loan details are captured in a Java application that maintains the loan life cycle. Pega application is used to service customers who fails to pay the loan amount. The service case stores the loan details.

Business problem

Whenever a loan is fully settled, the loan status is updated in the golden source system – SOR (Java application) but the changes need to be propagated to all systems that use the loan status to make tem up-to-date.

Solution

Kafka is chosen as the messaging platform. Whenever the loan expires, the Java application produces loan status message in a dedicated topic. Pega application is registered as one of the consumer and consumes the loan status change messages.

As a first step, we need to make a connection between Pega and external Kafka server.

Mandatory pre-requisite – Please follow the below article, to set your external Kafka server in your local machine.

1. Start the Kafka external server

Step 1: As per the documentation, start the zoopkeeper using the below command.

You should see the zookeeper binding message.

Important note: Make sure your external kafka server binding port – 2181 do not collide with Pega zookeeper binding port. I am using 2181 for external Kafka and 2182 for Pega zookeeper service

Step 2: Start the Kafka server.

You should see the Kafka server started successfully.

Note: The external Kafka server runs on port 9093 and Pega Kafka server runs on 9092.

2. Make the connection from Pega to Kafka

Step 1: Login to Pega designer studio

Step 2: Create a new Kafka Instance

Records -> SysAdmin -> Kafka -> Create new

Step 3: Configure the Kafka instance details

Details –

In the details block you need to enter the host and port ( you can also add multiple hosts in a cluster) of the external Kafka server to connect to

I am using the localhost IP address – 127.0.0.1 and port 9093

Security settings –

In the security settings block, you have the option to enable either one-way or two-way SSL settings using the truststore and keystore instance.

Authentication –

When your Kafka cluster is configured to use the JAAS configuration file for authentication then you will prompted with fields to enter the credentials.

For more details, please visit the link

https://docs.confluent.io/current/kafka/authentication_sasl/index.html

Currently, for local machines, I didn’t implement any sort of security settings, but in real-time mostly you will be using it.

Step 4: Click test connectivity.

Connection successfully established between Pega and external Kafka.

As a summary,

– External Kafka is started on port 9093 with zookeeper on 2181.

– Kafka Instance is created in Pega and made a connection with External Kafka server.

In the next article, we will see how Pega can consume the published Kafka messages.

Kafka – Part 7 – Pega Consumes the External Kafka Messages
  • pega-integration
Code Vault Curators

A technical team dedicated to empowering the Pega ecosystem with in-depth knowledge, guided by Premkumar Ganesan's vision.

Post navigation

Previous
Next

Pega Courses

Pega courses can be accessed at https://myknowacademy.com

Search through the blog

Tags

activity authentication background-processing case-management data-model declarative-processing email-processing file-processing pega-core-concepts pega-integration process reporting security system-administration user-interface validation

Categories

  • Code Vault

Recent posts

  • Service REST – Usage and Configurations in Pega
  • Queue processor – Usage and Configurations
  • Data Pages Usage & Configurations in Pega
  • Requestor types in Pega
  • Case Locking Mechanism in Pega

Related Articles

Code Vault

Service REST – Usage and Configurations in Pega

December 18, 2024 Code Vault Curators

First of all, don’t think INTEGRATION is a difficult topic in PEGA. I would say Integration is much easier than creating an activity rule. Pega makes it simple for developers. All you need to do is configure the Integration rules. Pega takes care of the rest. Pega provides useful wizards and guides the developers in […]

Code Vault

Service SOAP – Usage and Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will see how a Pega application can host a SOAP web service. I request you to go through another blog article on Service-REST where I already talked about services in general – Update: The Concept of SOAP services remains the same across different Pega versions. The screenshots in this blog […]

Code Vault

Connect SOAP – Usage and Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will try to understand about Connect-SOAP in Pega. Update: The concept of SOAP Connector remains the same across different Pega versions. Most of the screenshots in this blog article were reused from Pega 7 version and few were updated. Use this blog article to learn the concepts and you can […]

Code Vault

Connect REST – Usage and Configurations in Pega

December 10, 2024 Code Vault Curators

In this blog article, we will try to understand about Connect-REST in Pega. Connect-REST is One of the most commonly used Connectors in Pega to integrate with external systems. Update: The concept of REST Connector remains the same across different Pega versions. Most of the screenshots in this blog article were reused from Pega 7 […]

About

MyKnowTech was born with a mission to bridge the gap between technical expertise and business needs. We are a boutique firm specializing in Pega solutions, delivering them with a personal touch. At the heart of our philosophy is a commitment to putting clients first.

Company
  • About
  • Leadership
  • Career
  • Contact
Resources
  • Blog
  • Services
  • Solutions
  • Insights

©  MyKnowTech B.V. All Rights Reserved.

  • Sitemap
  • Terms & Conditions
  • Privacy Policy