Vinod Kumar M (@vinoddsce) header
Vinod Kumar M (@vinoddsce) profile picture

I Love Coding !!!!!!

Joined May 2013
Photo by Vinod Kumar M (@vinoddsce)Photo by Vinod Kumar M (@vinoddsce)
𝗪𝗵𝗮𝘁 𝗶𝘀 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 and why should you 𝗹𝗲𝗮𝗿𝗻 𝗶𝘁 𝗮𝘀 𝗠𝗟𝗢𝗽𝘀/𝗠𝗟/𝗗𝗮𝘁𝗮 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿? Today we look into the Kubernetes system from a bird's eye view. 𝗦𝗼, 𝘄𝗵𝗮𝘁 𝗶𝘀 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 (𝗞𝟴𝘀)? 𝟭: It is a container orchestrator that performs the scheduling, running and recovery of your containerised applications in a horizontally scalable and self-healing way. Kubernetes architecture consists of two main logical groups: 𝟮: Control plane - this is where K8s system processes that are responsible for scheduling workloads defined by you and keeping the system healthy live. 𝟯: Worker nodes - this is where containers are scheduled and run. 𝗛𝗼𝘄 𝗱𝗼𝗲𝘀 𝗞𝘂𝗯𝗲𝗿𝗻𝗲𝘁𝗲𝘀 𝗵𝗲𝗹𝗽 𝘆𝗼𝘂? 𝟰: You can have thousands of Nodes (usually you only need tens of them) in your K8s cluster, each of them can host multiple containers. Nodes can be added or removed from the cluster as needed. This enables unrivaled horizontal scalability. 𝟱: Kubernetes provides an easy to use and understand declarative interface to deploy applications. Your application deployment definition can be described in yaml, submitted to the cluster and the system will take care that the desired state of the application is always up to date. 𝟲: Users are empowered to create and own their application architecture in boundaries pre-defined by Cluster Administrators. ✅ In most cases you can deploy multiple types of ML Applications into a single cluster, you don’t need to care about which server to deploy to - K8s will take care of it. ✅ You can request different amounts of dedicated machine resources per application. ✅ If your application goes down - K8s will make sure that a desired number of replicas is always alive. ✅ You can roll out new versions of the running application using multiple strategies - K8s will safely do it for you. ✅ You can expose your ML Services for other Product Apps to use with few intuitive resource definitions. ✅ … ❗️Having said this, while it is a bliss to use, usually the operation of Kubernetes clusters is what is feared. It is a complex system. ❗️Master Plane is an overhead, you need it even if you want to deploy a single small application. Are you deploying your ML applications in Kubernetes? What are the main pain points you are facing? Let me know in the comments 👇 -------- Follow me to upskill in #MLOps, #MachineLearning, #DataEngineering, #DataScience and overall #Data space. Also hit 🔔to stay notified about new content. 𝗗𝗼𝗻’𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝗹𝗶𝗸𝗲 💙, 𝘀𝗵𝗮𝗿𝗲 𝗮𝗻𝗱 𝗰𝗼𝗺𝗺𝗲𝗻𝘁! Join a growing community of Data Professionals by subscribing to my 𝗡𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿: newsletter.swirlai.com
24
313
6
1,204
179,889
Vinod Kumar M retweeted
Java 21 is now available! #Java21 #JDK21 #OpenJDK Download Now: social.ora.cl/6018P4fbj Release notes: social.ora.cl/6019P4fbd API Javadoc: social.ora.cl/6011P4fb5 Features: social.ora.cl/6013P4fb9 Inside Java on JDK21: social.ora.cl/6016P4fbY
109
1,600
283
5,305
824,697
Vinod Kumar M retweeted
System Design Blueprint: The Ultimate Guide. The method to download the high-resolution PDF is available at the end. We've created a template to tackle various system design problems in interviews. Hope this checklist is useful to guide your discussions during the interview process. This briefly touches on the following discussion points: - Load Balancing - API Gateway - Communication Protocols - Content Delivery Network (CDN) - Database - Cache - Message Queue - Unique ID Generation - Scalability - Availability - Performance - Security - Fault Tolerance and Resilience - And more Subscribe to our newsletter to download the high-resolution system design blueprint. After signing up, find the download link on the success page: bit.ly/3KCnWXq
29
559
7
2,420
276,413
🚀 Level up your DevOps game with "Pipeline as Code"! Dive into Jenkins, Docker, #Kubernetes, and learn how to foster a true DevOps culture. Get your copy now: manning.com/books/pipeline-a… 📘
15
64
4,881
Vinod Kumar M retweeted
Docker Simplified👇 1. Docker It is a platform that helps build, package and ship applications in isolated environments called containers. 2. Image An image is a file that contains all the dependencies required for the Docker container to run in any environment. 3. Container A container is a runnable instance of an image containing packaged applications with their dependencies, configurations, and libraries in an isolated environment. 4. Dockerfile A file that contains a set of instructions for building a Docker Image. 5. Processes in Docker (i) PORT Mapping When we run a containerized application, it runs on a specific port. 2 methods to access the application:- 1. To use the IP of the docker container Every docker container gets an IP assigned by default. But this is an internal IP and is only accessible within the docker host. To view the internal IP use the command:- "docker inspect containerName or containerID". //The IP will be present in the Network section. To view the port just use the command:- "docker ps" Ex:-So if the IP is http://172.17.0.2 and the port on the container is 5000, to access the application we need to open a browser within the docker host and visit http://172.17.0.2:5000. 2. To use the IP of the Docker host Using the IP of the docker host by mapping the port inside the docker container to a free port on the Docker host. Ex:-So if the IP of the docker host is http://192.168.1.5 and the port on the container is 80, we can map port 80 of the local host to port 5000 on the docker container using the command:- "docker run -p 80:5000 image_name". Now, the user can access the application by going to the URL http://192.168.1.5:80. (ii)Volume Mapping The docker container has its isolated file system and any changes to any files happen within the container. If data is added into the container and then we decide to remove the container, the data also gets deleted. To solve this problem, a directory is needed to be mapped outside the container on the docker host to a directory inside the container. "docker run -v outside_directory:inside_directory container_name"
21
175
5
863
86,931
#NoDevelopmentNoTax Thank you @TOIBengaluru for covering our fight. We have pledged to fill entire potholes of Bengaluru. If government can't, we will do it. Three more wet-mix trucks reaching our locality soon. @siddaramaiah @DKShivakumar @osd_cmkarnataka #BrandBengaluru
64
230
19
636
52,075
Vinod Kumar M retweeted
kubecolor colourizes your kubectl output ➜ github.com/hidetatz/kubecolo…
1
18
91
12,756
Vinod Kumar M retweeted
Reverse proxy vs. API gateway vs. load balancer As modern websites and applications are like busy beehives, we use a variety of tools to manage the buzz. Here we'll explore three superheroes: Reverse Proxy, API Gateway, and Load Balancer. 🔹Reverse Proxy: change identity - Fetching data secretly, keeping servers hidden. - Perfect for shielding sensitive websites from cyber-attacks and prying eyes. 🔹API Gateway: postman - Delivers requests to the right services. - Ideal for bustling applications with numerous intercommunicating services. 🔹Load Balancer: traffic cop - Directs traffic evenly across servers, preventing bottlenecks - Essential for popular websites with heavy traffic and high demand. In a nutshell, choose a Reverse Proxy for stealth, an API Gateway for organized communications, and a Load Balancer for traffic control. Sometimes, it's wise to have all three - they make a super team that keeps your digital kingdom safe and efficient. – Subscribe to our weekly newsletter to get a Free System Design PDF (158 pages): bit.ly/3KCnWXq
6
312
3
1,322
142,411
Vinod Kumar M retweeted
OAuth 2.0 Explained With Simple Terms Credit: @alexxubyte
13
449
6
1,843
152,307
𝗠𝗮𝗶𝗻 𝗦𝗼𝗳𝘁𝘄𝗮𝗿𝗲 𝗗𝗲𝘀𝗶𝗴𝗻 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲𝘀 𝗬𝗼𝘂 𝗦𝗵𝗼𝘂𝗹𝗱 𝗞𝗻𝗼𝘄 Software design principles guide developers in creating efficient, scalable, and maintainable software. Here's a list of some of the most essential software design principles: 𝟭. 𝗢𝗯𝗷𝗲𝗰𝘁-𝗢𝗿𝗶𝗲𝗻𝘁𝗲𝗱 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴 (𝗢𝗢𝗣) 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲𝘀 Includes: Encapsulation, Abstraction, Inheritance, and Polymorphism. 𝟮. 𝗦𝗢𝗟𝗜𝗗 𝗗𝗲𝘀𝗶𝗴𝗻 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲𝘀 - design principles guide developers in creating maintainable, scalable, and efficient object-oriented software systems. 🔹 𝗦𝗶𝗻𝗴𝗹𝗲 𝗥𝗲𝘀𝗽𝗼𝗻𝘀𝗶𝗯𝗶𝗹𝗶𝘁𝘆 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲 (SRP): A class should have only one reason to change, meaning it should have only one job or responsibility. 🔹 𝗢𝗽𝗲𝗻/𝗖𝗹𝗼𝘀𝗲𝗱 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲 (OCP): Software entities (classes, modules, functions, etc.) should be open for extension but closed for modification. This means you can add new functionality without changing the existing code. 🔹 𝗟𝗶𝘀𝗸𝗼𝘃 𝗦𝘂𝗯𝘀𝘁𝗶𝘁𝘂𝘁𝗶𝗼𝗻 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲 (LSP): Subtypes must be substitutable for their base types. This means that objects of the parent class should be replaceable with objects of the child class without affecting the correctness of the program. 🔹 𝗜𝗻𝘁𝗲𝗿𝗳𝗮𝗰𝗲 𝗦𝗲𝗴𝗿𝗲𝗴𝗮𝘁𝗶𝗼𝗻 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲 (ISP): Clients should not be forced to depend on interfaces they do not use. This means creating specific interfaces for each class rather than having one large, all-encompassing one. 🔹 𝗗𝗲𝗽𝗲𝗻𝗱𝗲𝗻𝗰𝘆 𝗜𝗻𝘃𝗲𝗿𝘀𝗶𝗼𝗻 𝗣𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲 (DIP): High-level modules should not depend on low-level modules. Both should depend on abstractions. This means that you should rely on abstractions rather than on concrete implementations. 𝟯. 𝗗𝗼𝗻'𝘁 𝗥𝗲𝗽𝗲𝗮𝘁 𝗬𝗼𝘂𝗿𝘀𝗲𝗹𝗳 (DRY): Avoid duplication in code, which can lead to inconsistencies and bugs. Reuse code instead of copying it. 𝟰. 𝗞𝗲𝗲𝗽 𝗜𝘁 𝗦𝗶𝗺𝗽𝗹𝗲, 𝗦𝘁𝘂𝗽𝗶𝗱 (KISS): Keeping code as simple and clear as possible. Simple code is easier to understand and maintain and less prone to errors. 𝟱. 𝗬𝗔𝗚𝗡𝗜 (You Aren't Gonna Need It): Avoid adding unnecessary complexity by adding functionality only when needed. 𝟲. 𝗟𝗮𝘄 𝗼𝗳 𝗗𝗲𝗺𝗲𝘁𝗲𝗿 (LoD) or Principle of Least Knowledge: An object should only communicate with its immediate friends and not know other objects' inner workings. 𝟳. 𝗖𝗼𝗺𝗽𝗼𝘀𝗶𝘁𝗶𝗼𝗻 𝗢𝘃𝗲𝗿 𝗜𝗻𝗵𝗲𝗿𝗶𝘁𝗮𝗻𝗰𝗲: Favoring object composition over class inheritance, as it's more flexible and helps to avoid problems associated with larger inheritance hierarchies. 𝟴. 𝗧𝗵𝗲 𝗽𝗿𝗶𝗻𝗰𝗶𝗽𝗹𝗲 𝗼𝗳 𝗟𝗲𝗮𝘀𝘁 𝗔𝘀𝘁𝗼𝗻𝗶𝘀𝗵𝗺𝗲𝗻𝘁 - suggests that a solution or approach would not surprise a reasonably knowledgeable person in the subject area when encountered for the first time #technology #softwareengineering #programming #techworldwithmilan #softwaredesign
10
190
875
143,281
What are the most common 𝗨𝘀𝗲 𝗖𝗮𝘀𝗲𝘀 𝗳𝗼𝗿 𝗞𝗮𝗳𝗸𝗮? We have covered lots of concepts around Kafka already. But what are the most common use cases for The System that you are very likely to run into as a Data Engineer? 𝗟𝗲𝘁’𝘀 𝘁𝗮𝗸𝗲 𝗮 𝗰𝗹𝗼𝘀𝗲𝗿 𝗹𝗼𝗼𝗸: 𝗪𝗲𝗯𝘀𝗶𝘁𝗲 𝗔𝗰𝘁𝗶𝘃𝗶𝘁𝘆 𝗧𝗿𝗮𝗰𝗸𝗶𝗻𝗴. ➡️ The Original use case for Kafka by LinkedIn. ➡️ Events happening in the website like page views, conversions etc. are sent via a Gateway and piped to Kafka Topics. ➡️ These events are forwarded to the downstream Analytical systems or processed in Real Time. ➡️ Kafka is used as an initial buffer as the Data amounts are usually big and Kafka guarantees no message loss due to its replication mechanisms. 𝗗𝗮𝘁𝗮𝗯𝗮𝘀𝗲 𝗥𝗲𝗽𝗹𝗶𝗰𝗮𝘁𝗶𝗼𝗻. ➡️ Database Commit log is piped to a Kafka topic. ➡️ The committed messages are executed against a new Database in the same order. ➡️ Database replica is created. 𝗟𝗼𝗴/𝗠𝗲𝘁𝗿𝗶𝗰𝘀 𝗔𝗴𝗴𝗿𝗲𝗴𝗮𝘁𝗶𝗼𝗻. ➡️ Kafka is used for centralized Log and Metrics collection. ➡️ Daemons like FluentD are deployed in servers or containers together with the Applications to be monitored. ➡️ Applications send their Logs/Metrics to the Daemons. ➡️ The Daemons pipe Logs/Metrics to a Kafka Topic. ➡️ Logs/Metrics are delivered downstream to storages like ElasticSearch or InfluxDB for Log/Metrics discovery respectively. ➡️ This is also how you would track your IoT Fleets. 𝗦𝘁𝗿𝗲𝗮𝗺 𝗣𝗿𝗼𝗰𝗲𝘀𝘀𝗶𝗻𝗴. ➡️ This is usually coupled with ingestion mechanisms already covered. ➡️ Instead of piping Data to a certain storage downstream we mount a Stream Processing Framework on top of Kafka Topics. ➡️ The Data is filtered, enriched and then piped to the downstream systems to be further used according to the use case. ➡️ This is also where one would be running Machine Learning Models embedded into a Stream Processing Application. 𝗠𝗲𝘀𝘀𝗮𝗴𝗶𝗻𝗴. ➡️ Kafka can be used as a replacement for more traditional messaging brokers like RabbitMQ. ➡️ Kafka has better durability guarantees and is easier to configure for several separate Consumer Groups to consume from the same Topic. ❗️Having said this - always consider the complexity you are bringing with introduction of a Distributed System. Sometimes it is better to just use traditional frameworks. -------- Follow me to upskill in #MLOps, #MachineLearning, #DataEngineering, #DataScience and overall #Data space. Also hit 🔔to stay notified about new content. 𝗗𝗼𝗻’𝘁 𝗳𝗼𝗿𝗴𝗲𝘁 𝘁𝗼 𝗹𝗶𝗸𝗲 💙, 𝘀𝗵𝗮𝗿𝗲 𝗮𝗻𝗱 𝗰𝗼𝗺𝗺𝗲𝗻𝘁! Join a growing community of Data Professionals by subscribing to my 𝗡𝗲𝘄𝘀𝗹𝗲𝘁𝘁𝗲𝗿: newsletter.swirlai.com
13
344
5
1,383
161,725
Vinod Kumar M retweeted
Queues vs Pub/Sub 📦 Prepared this quick little visual explanation with the difference between Queues and Pub/Sub processing as an experiment. I might start doing more of these.
18
399
7
1,956
289,212
Vinod Kumar M retweeted
How does Pod to Pod communication work in Kubernetes? How does the traffic reach the pod? In this article, you will dive into how low-level networking works in Kubernetes ➤ dev.to/danielepolencic/traci…
102
368
43,647
Vinod Kumar M retweeted
Demystify Testing Spring Boot Applications 🍃 Gain insights, best practices, practical tips and avoid common pitfalls to write comprehensive and effective tests to become more productive 🧪

7
71
1
474
734,455
This article explores the JVM memory structure and flags that can be used to limit memory usage and how those map back to Kubernetes and cgroups v2 ➤ medium.com/@mark.andreev/how…
26
59
8,583
Vinod Kumar M retweeted
Let AI write the code for you: 1. UseBlackBox.io Plain English to code 2. Safurai.com Write code 10x faster 3. Codeium.com Modern coding superpower 4. Spellbox.app Prompts to code 5. Autoregex.xyz English to regex 6. Codesquire.ai Turn your thoughts into code 7. Taskade.com/generate/ai-prog… Front-end code generator 8. Tabnine.com Code faster with code completions
76
843
24
2,426
406,839