Raphael De Lio

Avatar photo

Raphael De Lio

Software Engineer | Developer Advocate | International Conference Speaker | Tech Content Creator | Working @ Redis

Do you want your ad here?

Contact us to get your ad seen by thousands of users every day!

[email protected]
Likes 0
Comments 6
Shares 0
Articles 10
Views 81,0K
Latest post

Semantic Caching with SpringBoot & Redis

Table of Contents 0. GitHub Repository1. Add the required dependencies2. Configure the Semantic Cache Vector Store3. Implement the Semantic Caching Service4. Integrate with the RAG ServiceStep 1: Clone the repositoryStep 2: Configure your environmentStep 3: Start the servicesStep 4: Use ...

Screenshot of a GitHub pull request titled “Align ZeroShotClassificationTranslator with Hugging Face behavior #3712” in the DJL (Deep Java Library) repository. The PR was created by raphaeldelio and merged by xyang16. It describes improvements to the translator to match the behavior of Hugging Face’s zero-shot classification pipeline in Python. The right panel shows reviewers (frankfliu, xyang16, zachgk), all marked as reviewed. The PR includes 4 commits, 5 checks, and changes in 3 files.
How I Improved Zero-Shot Classification in Deep Java Library (DJL) OSS

Table of Contents TL;DR:What’s Zero-Shot Classification (and Why It Matters)Integrating a Zero-Shot Classification Model with the Deep Java LibraryDependenciesThe Criteria ClassLoading and using the modelUsing different modelsUsing a model that is not available in the Model ZooLoading a local model …

How to send prompts in bulk with Spring AI and Java Virtual Threads

Table of Contents Here’s the flow:Virtual Threads for Massive ParallelismSpring AI Prompt CallProcessing in BatchesHandling Errors GracefullyProcess Results in BulkFull ImplementationStay curious! TL;DR: You’re building an AI-powered app that needs to send lots of prompts to OpenAI. Instead of sending …

Semantic Search with Spring Boot and Redis
Semantic Search with Spring Boot & Redis

Table of Contents Redis as a Vector DatabaseRedis OM SpringDatasetBuilding the Application0. GitHub Repository1. Add the required dependencies2. Define the Movie entity3. Repository Interface4. Search Service5. Movie Service for Data Loading5. Search Controller6. Application Bootstrap7. Sample RequestsWrapping upMore AI ResourcesStay …

Sliding Window Counter Rate Limiter (Redis & Java)

Table of Contents IndexHow It Works1. Define a Time Window2. Track Requests3. Remove Expired Intervals4. Rate Limit CheckHow to Implement It with Redis1. Track Requests by Sub-Interval2. Remove Expired Intervals3. Sum Counts for the Active WindowImplementing it with JedisAdd Jedis …

Sliding Window Log Rate Limiter
Sliding Window Log Rate Limiter (Redis & Java)

Table of Contents How It Works1. Define a Time Window2. Track Requests3. Remove Expired Entries4. Rate Limit CheckHow to Implement It with Redis and Java1. Log Each Request (If Allowed)2. Remove Expired Entries3. Count Requests in the Time WindowImplementing it …

Token Bucket Rate Limiter (Redis & Java)

Table of Contents How It Works1. Define a Token Refill Rate2. Track Token Consumption3. Refill Tokens4. Rate Limit CheckHow to Implement It with Redis and Java1. Retrieve current token count and last refill time2. Refill tokens if necessary and update …

Fixed Window Counter Rate Limiter (Redis & Java)

Table of Contents How It Works1. Define a Window Interval2. Track Requests3. Reset Counter:4. Rate Limit Check:How to Implement It with Redis and Java1. Use the INCR command to increment the counter in Redis each time a request is allowed2. …

Rate limiting with Redis: An essential guide

Table of Contents Why Redis for Rate Limiting?Popular Rate-Limiting PatternsLeaky BucketToken BucketFixed Window CounterSliding Window LogSliding Window CounterChoosing the Right Tool for the JobUnderstand Your Traffic PatternsAssess the Level of Precision NeededConsider Resource ConstraintsAccount User ExperienceStay curious! This article is …

Join the Community

Be a Part of Our Network

Mastodon

Subscribe to foojay updates:

https://foojay.io/today/author/raphael-delio/feed/
Copied to the clipboard