I present to you this new stack that consists of two highly fast technologies that make the development experience really fast.
Re2 Stack 📀 🟥
The name comes from both technologies starting with the word Re, Remix and Redis, so these two (2) technologies make up the stack.
When talking about Redis today it is thought that it simply provides a caching mechanism and could hardly be used in other parts that would make up an architecture, however Redis has evolved so much that it can cover many more scenarios, even being the main database without need for no other.
Remix on the other hand is a full stack web framework that allows you to focus on the user interface that provides user experience and rapid development.
When two blazing-fast technologies come together to bring out the best of each other, something amazing happens:
In Remix the global state is the database and the database is the cache in Redis Stack.
The idea of Re2 Stack is to be progressive and two scenarios are proposed here
Re2 Stack Full Stack Version
In a fullstack scenario, Redis JSON will be used as the main/cache database and Remix will be used to access that data as seen in the following diagram:
Redis Stack through Redis JSON allows you to be a document-oriented database with exceptional speed, through Redis OM you can define your schemas, queries, have indexes, any capability that a modern NoSQL database would have, along with To that at the exceptional speed that comes out of the Remix box you have an amazing combination.
An example of this stack is found in the following repository:
andreslopezrm / re2stack
Remix + Redis = Re2 Stack
Re2 Stack
The name comes from both technologies starting with the word Re, Remix and Redis, so these two (2) technologies make up the stack.
When talking about Redis today it is thought that it simply provides a caching mechanism and could hardly be used in other parts that would make up an architecture, however Redis has evolved so much that it can cover many more scenarios, even being the main database without need for no other.
The Article:
https://dev.to/andreslopezrm/introducing-re2-stack-50l
Remix
Redis
- Create an account in Redis Cloud and get the Redis URL
- Create an .env file with
REDIS_URL=
Deployment
After having run the create-remix
command and selected "Vercel" as a deployment target, you only need to import your Git repository into Vercel, and it will be deployed.
If you'd like to avoid using a Git repository, you can also deploy the directory by running Vercel CLI:
Re2 Stack Enterprise Version
Business applications normally have an architecture with many components, jobs in queues, asynchronous processes, events, and therefore tend to have technologies from different providers. In a scenario like this, for example:
Now all these components can be simplified and united in a single technology: Redis
With Redis we have all those features in a single stack without having to bundle different technologies separately.
For more information check:
Top comments (0)