abhishek1987-blog
abhishek1987-blog
Object Oriented
154 posts
Don't wanna be here? Send us removal request.
abhishek1987-blog · 6 years ago
Text
Basics of Kubernetes Volumes - Part 1
Basics of Kubernetes Volumes – Part 1
Tumblr media
We continue our “Kubernetes in a Nutshell” journey and this part will cover Kubernetes Volumes! You will learn about:
Overview of Volumes and why they are needed
How to use a Volume
Hands-on example to help explore Volumes practically
The code is available on GitHub
Happy to get your feedback via Twitter or just drop a comment!
Pre-requisites:
You are going to need minikube and kubectl.
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
“Kubernetes in a Nutshell” — blog series
“Kubernetes in a Nutshell” — blog series
This series is going to cover the “breadth” of Kubernetes and the core/fundamental topics. It will be done in a practical way where you get your “hands dirty” by trying things out — we will use minikube (locally) or the managed Azure Kubernetes Service cluster(s) where applicable.
List of blogs…
I’ll keep updating the links here as I post new ones:
Beyond Pods: how to orchestrate stateless apps…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
Deep dive into Kubernetes components required to run stateful Kafka Streams applications
Deep dive into Kubernetes components required to run stateful Kafka Streams applications
Tumblr media
Happy to get feedback via @abhi_tweeter or just drop a comment!
One of the previous blogs was about building a stateless stream processing application using the Kafka Streams library and deploying it to Kubernetes as in the form of a Deployment object.
In this part, we will continue exploring the powerful combination of Kafka Streams and Kubernetes. But this one is all about statefulapplicati…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
How to configure your Kubernetes apps using the ConfigMap object?
How to configure your Kubernetes apps using the ConfigMap object?
Tumblr media
“Separation of configuration from code” is one of the tenets of the 12-factor applications. We externalize things which can change and this in turn helps keep our applications portable. This is critical in the Kubernetes world where our applications are packaged as Docker images. A Kubernetes ConfigMap allows us to abstract configuration from code and ultimately the Docker image.
This blog post…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
Tutorial: Develop a Kafka Streams application for data processing and deploy it to Kubernetes
Tutorial: Develop a Kafka Streams application for data processing and deploy it to Kubernetes
Tumblr media
This tutorial will guide you through how to build a stateless stream processing application using the Kafka Streams library and run it in a Kubernetes cluster on Azure (AKS).
As you go through this, you’ll learn about the following:
What is Kafka Streams?
How to set up and configure a Docker container registry and Kubernetes cluster on Azure
What’s going on in the Java code for stream processing…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
How to quickly test connectivity to your Azure Event Hubs for Kafka cluster, without writing any code
How to quickly test connectivity to your Azure Event Hubs for Kafka cluster, without writing any code
You have a shiny new Kafka enabled broker on Azure Event Hubs and want to quickly test it out without writing cumbersome client (producer and consumer) code. Try out the instructions in this post and you should (hopefully) have everything setup and sanity tested in ~ 10 minutes.
Tumblr media
Clone this GitHub repo and change to the correct directory
git clone…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
How to get your Kubernetes cluster service principal and use it to access other Azure services?
How to get your Kubernetes cluster service principal and use it to access other Azure services?
So, you have a Kubernetes cluster on Azure (AKS) which needs to access other Azure services like Azure Container Registry (ACR)? You can use your AKS cluster service principal for this.
All you need to do is delegate access to the required Azure resources to the service principal. Simply create a role assignment using az role assignment create to do the following:
specify the particular scope,…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
Stateless apps in Kubernetes — beyond Pods
Stateless apps in Kubernetes — beyond Pods
Tumblr media
Hello Kubernauts! Welcome to the “Kubernetes in a nutshell” blog series 🙂
This is the first part which will cover native Kubernetes primitives for managing stateless applications. One of the most common use cases for Kubernetes is to orchestrate and operate stateless services. In Kubernetes, you need a Pod (or a group of Pods in most cases) to represent a service or application – but there is…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
Code walkthrough for "funcy" - a Serverless Slack app using Azure Functions
Code walkthrough for “funcy” – a Serverless Slack app using Azure Functions
In the previous blog, we explored how to deploy a serverless backend for a Slack slash command on to Azure Functions
As promised, it’s time to walk through the code to see how the function was implemented. The code is available on GitHub for you to grok.
If you are interested in learning Serverless development with Azure Functions, simply create a free Azure accountand get started! I would…
View On WordPress
0 notes
abhishek1987-blog · 6 years ago
Text
funcy - a Serverless Slack app using Azure Functions
funcy – a Serverless Slack app using Azure Functions
This article is part of #ServerlessSeptember. You’ll find other helpful articles, detailed tutorials, and videos in this all-things-Serverless content collection. New articles are published every day — that’s right, every day — from community members and cloud advocates in the month of September.
Find out more about how Microsoft Azure enables your Serverless functions at https://docs.micros…
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
Screencast: pushing a Java EE app to Oracle Cloud
Screencast: pushing a Java EE app to Oracle Cloud
Tumblr media
Here is a screen cast to show case how you can easily push a Java EE application to Oracle Application Container Cloud from your command line
  Overview
start with a Java EE 7 Maven archetype — mvn archetype:generate -Dfilter=com.airhacks:javaee7-essentials-archetype
modify the code — add a simple JAX-RS resource and build the…
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
Talk @ Oracle Code San Francisco 2017
Talk @ Oracle Code San Francisco 2017
Here are the details for my talk @ Oracle Code (a track at JavaOne 2017) – Streaming Solutions for Real time problems (Stream Processing solutions using Apache Kafka, Kafka Streams and Redis)
Code (Github) – https://github.com/abhirockzz/accs-ehcs-stream-processing
Video
Slides
https://www.slideshare.net/AbhishekGupta126/streaming-s…
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
New release: REST assured with JAX-RS
New release: REST assured with JAX-RS
    REST assured with JAX-RS is now updated for JAX-RS 2.1 – a new chapter has been added to cover its new features. You can read it on Gitbook or grab it via Leanpub
Cheers!
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
Handling custom objects with JAX-RS SSE API
Handling custom objects with JAX-RS SSE API
Information sent using the JAX-RS 2.1 SSE support (in Java EE 8) does not only have to be of String type – it supports Java primitives (Integer , Long etc.), JSON-B & JAX-B annotated types as well as custom objects whose encoding process (Java object to on-wire format) is defined using a MessageBodyWriter implementation
Here is simple example you can try out – no need to setup anything except Doc…
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
CompletionStage support in server-side JAX-RS
CompletionStage support in server-side JAX-RS
JAX-RS 2.1 (part of Java EE 8) now supports returning a CompletionStage to mark the request as eligible for asynchronous processing. This is in addition to the AsyncResponse API which has been available since JAX-RS 2.0 (Java EE 7)
Even the Client API has added support for reactive-style programming by providing support for CompletionStage API, but this blog will focus on the server-side support
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
JAX-RS 2.1 SSE Client API example using Glassfish 5 on Docker
JAX-RS 2.1 SSE Client API example using Glassfish 5 on Docker
Tumblr media
Along with the Server API for SSE, JAX-RS 2.1 (part of Java EE 8) has also has an equivalent client side API
Here is a quick peek – you can grab the project from Github
To summarize
we use a @Singleton EJB with @Startup
during initialization
create a single action (one time) Timer  i.e. @PostConstruct
and instantiate the SSEEventSource – its a public SSE source
when the timer expires, the @Time…
View On WordPress
0 notes
abhishek1987-blog · 8 years ago
Text
Try out JSON-B 1.0, JPA 2.2 using Java EE 8 on Glassfish 5 & Docker
Try out JSON-B 1.0, JPA 2.2 using Java EE 8 on Glassfish 5 & Docker
Glassfish 5 Build 11 is now available – with support for many of the Java EE 8 specifications e.g. JAX-RS 2.1, JPA 2.2, JSON-B 1.0 etc. For more details check out the��Aquarium space. This blog covers
test driving couple of new additions in this build – JSON-B 1.0 and JPA 2.2
we run this in a container, thanks to the Glassfish 5 nightly Docker image
Application
It’s a simple one – available on…
View On WordPress
0 notes