Skip to content

Search engine system for articles using redis technology stack. This project was produced for the participation of the Redis hackathon promoted by the Dev Community. https://dev.to/devteam/announcing-the-redis-hackathon-on-dev-3248

License

Notifications You must be signed in to change notification settings

leoguilen/search-engine-microservices-with-redis-stack

Repository files navigation

Articles Discovery Engine

Search engine system for articles using the redis technology stack. A tool that extracts articles and streams this information to the redis cluster, where processing is done with Redis Gears to add the data as JSON documents in RedisJson and indexes it to enable search with RediSearch.

Architecture Diagram

Architecture Diagram Image

Features demo

  • Demo Web Application: Demo Web Application

  • RedisJSON Data: RedisJSON data

  • RedisGears Function Registered: RedisGears function

  • RediSearch search indexed documents: RediSearch searching

  • Backend Query API: Query Api search response data

How it works

How the data is stored:

Refer to this example for a more detailed example of what you need for this section.

How the data is accessed:

Refer to this example for a more detailed example of what you need for this section.

How to run it locally?

Prerequisites

  • Go - v1.18.4
  • Dotnet - v6.0.108
  • Docker - v20.10.14 (optional)

Local installation

Go to /deploy/docker folder (cd ./deploy/docker) and then:

# run docker compose or install redis manually
docker-compose up -d --build

Go to /src/functions folder (cd ./src/functions) and then:

# Run backend
- Go func:
cd ./src/functions/web-clawler-worker
go build ./cmd/main.go
func start

- Dotnet func:
cd ./src/functions/query-api
dotnet build
func start

Go to /src/web/articles-discovery-ui folder (cd ./src/web/articles-discovery-ui) and then:

# Run frontend
cd ./src/web/articles-discovery-ui
npm run serve

Deployment

...

More Information about Redis Stack

Here some resources to help you quickly get started using Redis Stack. If you still have questions, feel free to ask them in the Redis Discord or on Twitter.

Getting Started

  1. Sign up for a free Redis Cloud account using this link and use the Redis Stack database in the cloud.
  2. Based on the language/framework you want to use, you will find the following client libraries:

The above videos and guides should be enough to get you started in your desired language/framework. From there you can expand and develop your app. Use the resources below to help guide you further:

  1. Developer Hub - The main developer page for Redis, where you can find information on building using Redis with sample projects, guides, and tutorials.
  2. Redis Stack getting started page - Lists all the Redis Stack features. From there you can find relevant docs and tutorials for all the capabilities of Redis Stack.
  3. Redis Rediscover - Provides use-cases for Redis as well as real-world examples and educational material
  4. RedisInsight - Desktop GUI tool - Use this to connect to Redis to visually see the data. It also has a CLI inside it that lets you send Redis CLI commands. It also has a profiler so you can see commands that are run on your Redis instance in real-time
  5. Youtube Videos