Microservices messaging on Oracle Cloud using Apache Kafka by Abhishek Gupta


This is the first of a two-part blog series. It leverages the Oracle Cloud platform (in concert with some widely used open source technologies) to demonstrate message based, loosely coupled and asynchronous interaction between microservices with the help of a sample application (scroll down to the end to download the source code).  It deals with

  • Development of individual microservices
  • Using asynchronous messaging for loosely coupled interactions
  • Setup & deployment on respective Oracle Cloud services

Technical components

Oracle Cloud

The following Oracle Cloud services have been leveraged

Oracle Cloud Service



Application Container Cloud

Serves as a scalable platform for deploying our Java SE microservices

Compute Cloud

Hosts the Kafka cluster (broker)


Open source technologies

The following open source components were used to build the sample application

Oracle Cloud Service



Apache Kafka

A scalable, pub-sub message hub


Used to implement REST and SSE services. Uses Grizzly as a (pluggable) runtime/container


Used as the standard Java build tool (along with its assembly plugin)

Messaging in Microservices

A microservice based system comprises of multiple applications (services) which typically focus on a specialized aspect (business scenario) within the overall system. It’s possible for these individual services to function independently without any interaction what so ever, but that’s rarely the case. They cannot function in isolation and need to communicate with each other to get the job done. There are multiple strategies used to implement inter-microservice communication and they are often categorized under buckets such as synchronous vs asynchronous styles, choreography vs orchestration, REST (HTTP) vs messaging etc.

About the sample application


The use case chosen for the sample application in this example is a simple one. It works with randomly generated data (the producer microservice) which is received by an another entity (the consumer microservice) and ultimately made available using the browser for the user to see it in real time. Read the complete article here.

WebLogic Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

Blog Twitter LinkedIn Forum Wiki

Technorati Tags: WebLogic Community,Oracle,OPN,Jürgen Kress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.