WASM – upgrade webpack
Upgrade Webpack & Dependencies (Recommended Long-Term) 🔧 Problem: You’re hitting the classic OpenSSL incompatibility issue that started affecting many Webpack 4/5 projects when Node.js v17+ introduced changes to the OpenSSL crypto defaults. Node.js v17 and later uses OpenSSL 3.0, which by default disables legacy algorithms used in Webpack for hashing.Fix it by upgrading webpack Then […]
Qdrant & Rust Client
Once you have Docker installed, you can simply run Qdrant with an API key For testing, just make your own value without the API key you chose -> Qdrant Rust Client Create a “collection” and “upsert” some data Do a vector search Filter search Prepare a model to do embeddings with Qdrant (fastembed) *Each model […]
Factory + Builder Pattern
This tutorial demonstrates the powerful combination of Factory and Builder patterns in Rust. It’s useful to know, and also be able to recognize. Key Concepts Covered: Factory Pattern: The DatabaseType enum acts as a factory that knows how to create different database implementations. It encapsulates the creation logic and provides a clean interface for object […]
Why Actors Are Perfect for WebSockets
What’s the big deal, why not use Arc and Mutex ? Actors Are Not Rust-Specific – They’re a Universal Pattern!The Actor Model is Language-AgnosticThe Actor Model was actually invented in 1973 by Carl Hewitt – way before Rust existed! It’s a conceptual framework that can be implemented in any language. The WebSocket Challenge Imagine you’re […]
Design Patterns in Rust – Singleton Pattern
The singleton pattern gives you the benefits of global access while maintaining control over how that global state is created, accessed, and modified. It’s essentially “global variables done right” for cases where you genuinely need global state. To demo this, we’ll code an example to connect to a database. This is just to make the […]