Posts

Showing posts from 2024

Flyway in Spring Boot and Gradle: flyway-core vs Flyway Gradle Plugin

 Have you ever wondered about the best way to integrate Flyway into your Gradle project? Let me break it down into two main approaches: using Flyway as a dependency and applying the Flyway plugin . The Dependency Approach: implementation 'org.flywaydb:flyway-core' Adding Flyway as a dependency essentially embeds it within your application. Think of it as equipping your application with a built-in toolbox to handle database changes during runtime. This approach is ideal when you want your application to take charge of migrations. When to Use It Your application needs to manage database changes while it’s running. You’re working with a Spring Boot application that integrates seamlessly with Flyway. Key Features Spring Boot Auto-Configuration: Spring Boot automatically detects the Flyway dependency and configures it. You can custo...

"BACKABLE" - book by Suneel Gupta

Image
  "Backable" by Suneel Gupta explores how to inspire belief in your ideas, combining storytelling, resilience, and practical strategies to succeed. While I recommend you to read it here are some Concepts from Backable I found interesting: The Backable Mindset : The book highlights the importance of adopting a mindset that attracts support. Gupta discusses how successful people who are often seen as "backable" tend to approach challenges, communicate their vision, and create momentum. Below is an extract from first chapter he talks about how we should convince ourselves first with an idea before even sharing it with others: " When an idea first enters your mind, it's not fully formed, and certainly not prepared to interact with the real world. But because we're excited about the possibility, we make the mistake of inviting people in when the idea isn't ready. Every time I'm fired up about a new idea, I feel an impulse to share it immediately. But...

Use of Sidecars to Microservice Communication

 Recently I attended Analysis Design Architcture conference (https://adaconf.org/) where listened to talk named "Future Proof Software Architecture: Microservices". That reminded me my experience of using sidecars as part of a microservice architecture in one of my previous projects( Australian Bank). So I decided to write down some of the key points and insights that came out of that experience.  firstly, let's start with understanding why we might want to move beyond traditional API gateways. API gateways traditionally handle everything from TLS termination to authentication, authorisation, and traffic routing. They're like the swiss army knife of API management - doing lots of things in one place. But here's the problem - as our microservices architectures grow more complex, having all these responsibilities in a central gateway becomes a bottleneck. So let's see what are sidecars - think of them as your microservice's personal assistant. Instead of rou...

Understanding LLMs in Simple Terms

 Everyone talks about ChatGPT and revolution of GenAI. Ever wondered what powers the chatbot you use or how your favourite AI assistant seems to know just the right thing to say? It’s all thanks to LLM s , or Large Language Models. Let me break it down in plain English and make it easy to grasp. Key things to know about LLMs: Think of them like super-smart text predictors! (imagine writing "Hello, how are..." and it knows to complete with "you"... but way more advanced!) They work like a magical book predictor (they read MILLIONS of books, articles, websites... if you read non-stop, it would take 2600+ years to read what GPT-3 learned from!) Don't expect them to be human-like!!! (they're like a chef who memorised recipes but never tasted food) Cool Metaphors that helped me understand: The Library Detective Has read EVERY book in existence Can find info super fast Connects different facts together (like having the world's smartest librarian at yo...