Posts

Building Server APIs Using gRPC for a Java Application

Sometime back I blogged about core projects under  the  Cloud Native Computing Foundation: https://www.jobinesh.com/2020/01/a-glance-at-cloud-native-computing.html. It is time for us to revisit some of the core projects in detail to learn how to fit them in a real life cloud native application. In this post I will briefly touch one of the promising projects incubating under Cloud Native Computing Foundation:  gRPC

What is gRPC ?

The gRPC is  remote procedure call (RPC) framework and toolset developed at Google. This is built on top of HTTP/2, leveraging the the benefits of a platform independence of the HTTP. It essentially means that this protocol works with various programming languages :)
Here is the definition from wikipedia:

gRPC (gRPC Remote Procedure Calls) is an open source remote procedure call (RPC) system initially developed at Google in 2015. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, b…

Git in Day to Day Life

Here is the quick list of commands that one need to use in day to day life. As I keep forgetting them, thought of listing down in one place.  Hopefully this list may save my time ;)

Configuring your identity 

$ git config --global user.name "FirstName LastName"
$ git config --global user.email firstname.lastname@somedomain.com

Clone repository

$ git clone

Create new branch

$ git  checkout -b feature/branch-name

Staging and committing changes

$ git  add .
$ git  commit -m "comments"
$ git push -u origin feature/branch-name

Viewing git log

$ git log --after="2020-01-01 00:00"
$ git log --all --pretty=format:"%h %cd %s (%an)" --since=7.days
$ git log --all --pretty=format:"%h %cd %s (%an)" --since='7 days ago'

Rebasing a feature branch

$ git checkout master
$ git pull
$ git checkout feature/branch-name
$ git rebase master
$ git add
$ git rebase --continue
$ git rebase master
$ git push origin feature/branch-name --force

Git pull with …

Integrating Kafka with a Helidon MicroProfile Application - Part 2

Recently I posted a very short article on using Kafka along with a Helidon MicroProfile application: https://www.jobinesh.com/2020/01/using-kafka-with-helidon-microprofile.html. It was using classic Kafka APIs and involved more manual coding. In this post, let us see how to build the same messaging solution declaratively availing the Reactive Messaging offering of MicroProfile specification. Uhh...Did I say less coding and more fun :)

What is MicroProfile Reactive Messaging?
The following doc may answer all your questions: https://smallrye.io/smallrye-reactive-messaging/ Another interesting blog post on this topic is here: https://dzone.com/articles/using-jakarta-eemicroprofile-to-connect-to-apache. We use the same constructs with a Helidon MP application in this example.

What is the usecase exercised in this example ?
It is simple :) We use the a simple greeting REST API  to exercise the Kafka messaging feature. When a client updates the greeting message, the Greeting resource impleme…

Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.