Flink TaskManagers, Task Slots, Subtasks, and Parallelism: A Visual Guide
Four diagrams explain Flink workers, parallel subtasks, operator chaining, and slot sharing, with a worked example showing why ten operator subtasks can fit into four slots.
From the notebook
Explore the latest articles, or find a topic in the archive.
Four diagrams explain Flink workers, parallel subtasks, operator chaining, and slot sharing, with a worked example showing why ten operator subtasks can fit into four slots.
How checkpoint limits, task failures, and worker replacement affect Flink recovery, with restart strategies and a practical diagnosis checklist.
Modern distributed databases built for high-velocity ingestion—such as Apache Cassandra, ScyllaDB, and RocksDB—rely on the Log-Structured Merge-tree (LSM-tree) storage architecture. Unlike traditional B-Tree engines that perform in-place page updates (causing random disk I/O and fragmentation under heavy concurrency), an LSM-tree...
Running flink application locally is really fun and nice way to learn flink. As mentioned in my other posts I have been really enjoying working in Java and Flink. I really love to run the app locally and test some...
A diagram of the Flink Kubernetes Operator architecture, covering deployments, task managers, state storage, and checkpoints.
With NodePort service k8s opens a port on each node and when we access the service from outside using the ip address:port the traffic gets routed to out service.
Services in K8s is not pods or containers. They are actually configured in the Linux Kernel network stack using IP Tables and DNS Service.
To understand the different components of the Kubernetes cluster we need to see what components are current running on the system. I have a minikube instance running and I can ssh into the instance to see all the processes that...
The “main thing” that allows Java NIO to be non-blocking is the Selector combined with the ability to set Channels into non-blocking mode.
Recently, I’ve been working on a Flink Java application experiencing significant performance issues. This led me down a path of discovering the rich set of diagnostic tools available in the Java ecosystem for identifying and resolving backpressure and performance bottlenecks....
I was curious about the Executor.Shutdown method. I thought that this was a blocking method but its not. Its basically flips the switch of the executor to Shutting down. Pretty interesting and someone can easily make a mistake. Below it...
Flink provides a dedicated set of data types located primarily in the org.apache.flink.types package. These are designed to overcome the performance limitations of standard Java types (immutability and heavy serialization).
Garbage collection and the wait times are the some of the most important metrics you need to track to see if you application is running with good performance.
These are some important conversation details from my Gemini chat which are very critical to become a great developer.
I was recently trying to understand deeper into the java process and how memory model used by a java process. I found the following analysis with jconsole very helpful. jconsole is a debugging tool provided in the java jdk and...
Making the transition from one programming language to another is never a straightforward process, even for experienced developers. Recently, I made the switch to Java as my primary programming language at work. Despite my proficiency in C#, I quickly discovered...
IntelliJ ShortCut :: Ctrl + Shift + O
Lot of times when you are working on Java projects, you want to examine the jar file and see what files it contains and if it has the necessary files or not.
This guide provides step-by-step instructions for deploying and running Apache Flink applications in a Kubernetes environment. By following these instructions, you’ll establish a complete local development and deployment workflow for Flink streaming applications.
find Command Some of the common patterns with the find command
tr command
Key Less SSH logins , use the following commands to create a Public/Private Key and copy the public key to the SSH server.
I am listing of the visual studio useful shortcuts that I use frequently.
Lot of times in day to day development we need to do some background processing task, for example reading some file and updating the list. For this it makes sense to use a dedicated thread to do the processing. We...
Protocol Buffer is a platform agnostic data transfer protocol. It is a binary protocol where data is serialized in binary format. The serialized data is very compact and takes less storage space and small data also helps with reducing the...
Recently I was tasked with identifying the high CPU issues in our production environment. We were seeing issues where the CPU increase was not really following the traffic patterns. This is a shared environment where lot of different processes are...
Today going to list some simple commands which should be in every developers toolkit. These are things that you will need to do quite often in your daily job and its best to incorporate these in your muscle memory.
Overtime I have come to realize that creating framework is where the real fun in programming is for me. It gives me immense satisfaction and sense of focus that is very important for me as a developer.
Recently I have been learning more about embedded database for my work on near real time system. We have an application where telemetry messages are sent from the client browser to a Kafka topic at near real time lag. We...
HttpListener provides the functionality to host bare bore Http Service in apps for interprocess communication. In Microservice architecture it is sometimes required that you have to host some service in your application, for this scenario it is critical to create...
Some bash shortcuts I use.
Recently I had to fix a bunch of Code Analysis warning in the code base. I started to wonder these are some of the common mistakes in the code that are made and would be just better to keep in...
Recently I had to work on enabling the Code Analysis on a project we recently started. We should have ideally done it from the very start but better late than never.
I installed ubuntu on my MacBook Air a while ago and I was running into wireless connection issues. At that time when I did some digging around and found that lot of people were facing the issue with getting the...
Recently at work we were running into an issue with Azure DevOps build. Azure Devops by default allows 10GB of space for running the build pipelines, however due to some issue we were constantly going over the 10GB limit and...
These days at work I have been involved in developing a framework for application development. The main purpose of this framework is
Docker is a great tool for deployment and sharing software. I use github pages for my blog and I find it pretty useful since it doesnt come in my way of writing. Authoring the markdown files is all that is...
Decorators are used extensively in Python and various frameworks like Flask/Django or Logging modules etc
Python has a very easy and nice way of printing text any stream like Stdout/file stream etc. You can easily create some quick nice tabular output and push to file.
Jupyter notebook is a great tool to show/share your work. The tool also provides some ways to easily execute and take some actions on the results obtained. I didnt know about SList before and found it to be very useful...
Tmux is a terminal multiplexer and I use it in my day to day activities. I have installed the Oh-My-Tmux. This gives some great benefits. Oh-My-Tmux maps the CTRL+A as the trigger key. Default is CTRL+B.
Delete a Docker Image :: docker image rm {imageid}
I am writing this blog to help me rememeber the linux commands I use. At home I switched to using my Ubuntu Machine as my main machine. I love my Lenovo T430 which I bought from ebay at a cheap...
I personally believe that .Net Core is the future of .Net. Learning .Net Core is imperative and very useful for the future. I am playing around with .Net core and want to write some of my findings on linux. Creating...
Below is the design of Personalized Notification Feature that I am working on in my free time. This design heavily leverages the ChangeFeed feature provided by the Azure CosmosDb and it nicely fits in how notifications can be sent in...
ManualResetEvent and AutoReset Event are some of the most important classes provided by the .Net Framework. These are used for the purpose of singalling threads (start/stop) etc and having a detailed knowledge of the these classes are very important for...
Open this post to view its content.
Welcome to my blog. In my blog I will be mostly writing about my technical learning/projects I do in my personal time. This site is more of a source of reference for me. In the process if it helps others,...