Session affinity ensures that all requests from a single user (or client) during a "session" (e.g., browsing a website) are routed to the same backend server. This is critical for maintaining stateful interactions (like logins, shopping carts) when a website or app uses multiple servers behind the scenes. How It Works: Step-by-Step Initial Request: When a … Continue reading Session affinity (Sticky Sessions)
Category: Tech
AWS Cert Early Adopters
What does it mean by "Early Adopters" for AWS Certifications: In the context of AWS Certifications, the term "Early Adopter" refers to individuals who participate in the beta or early release phase of a new certification program. Here's what it means: Beta Phase: Early Adopter certifications are typically offered before the official launch of the certification. AWS uses … Continue reading AWS Cert Early Adopters
OpenAI Embeddings and tiktoken
Hi Folks, here I will share my experience about using OpenAI embedding, its necessity and the scenarios where embedding are useful. I was tasked with creating an internal chat-bot for searching and summarizing content from our internal wiki and knowledge base. To achieve this, I initially built a web crawler to gather information from linked … Continue reading OpenAI Embeddings and tiktoken
where is module ‘openai.embeddings_utils’ in new Python Openai library
Hi Folks, Recently, while juggling various LLM projects and migrating from Python OpenAI version 0.28.1 to version 1.xx.xx, I encountered difficulty in locating replacements for the embedding_utils methods. get_embedding and cosine_similarity I encountered an error: ModuleNotFoundError: No module named ‘openai.embeddings_utils’. The optimal resolution entails referencing the identical class from version 0.28.1, available at https://github.com/openai/openai-cookbook/blob/59019bd21ee4964dd58f6671b8dc1f3f6f3a92b3/examples/utils/embeddings_utils.py I … Continue reading where is module ‘openai.embeddings_utils’ in new Python Openai library
UFuncNoLoopError: ufunc ‘multiply’ did not contain a loop with signature matching types
Hi Folks, I have been away from blogging for some time and it's a pleasure to be back. As I always enjoy sharing and collaborating on what I've learned, but sometimes it's challenging to find time amidst professional and personal commitments to documents my insights. Enough! Nowadays, I'm working on a couple of LLM use … Continue reading UFuncNoLoopError: ufunc ‘multiply’ did not contain a loop with signature matching types
Microservices – Handling Distributed Data
Hope you are safe in this pandemic. Since from few years, I'm working on Microservices and related ecosystem. Though to write down a series of blogs based on my understanding and experience. As continuation to my previous post related to Cloud Native way of application development, we talked about what is mean by cloud native … Continue reading Microservices – Handling Distributed Data
Cloud-Native Twelve-Factor Applications
Since few months I thought to write about Cloud-Native. Is it just a buzzword or it truly worthy jargon ? Believe me It is not just a buzzword, It's a new Architectural style to build scalable, complex and microservice based applications that are easy to deploy, automate and maintain. It helps business to service their … Continue reading Cloud-Native Twelve-Factor Applications
Essentials JVM Options
Hi Folks, This article summirizes few most important JVM options or JVM arguments that can be used to monitor/debugging purposes or essential running of java application in production. Setting Java Heap SizeGarbage CollectionGarbage Collection LoggingSet Free Heap RatioHandling out of memory errorTracing of ClassloaderSetting TimeZone Setting Java Heap Size: This is widely used and most … Continue reading Essentials JVM Options
Spring Security Login Form
Hi Folks, This article is quick overview of how to use Spring boot security basic login with In-Memory authentication. Its a web based application, when user browse the application a spring security based Login Form presented to the user. The Maven dependencies are: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> Once these dependenceis added … Continue reading Spring Security Login Form
Setting up Vault Server as Google Cloud Storage as Storage Backend
Hello Folks ! Recently I worked on task to isolate the passwords, database credentials from properties file and store it inside the vault.This post explain how to install and setup the vault server, store data as Key-value pair and usage of this vault data in spring boot application.Vault comes with many secrete engines (and so … Continue reading Setting up Vault Server as Google Cloud Storage as Storage Backend