Building a scalable search service with fastapi and postgresql pc 1002

Building a Scalable Search Service with FastAPI and PostgreSQL

Scroll down to copy the prompt

Text Updated 1 min read by prompts.chat · @ZhenjieZhao66
Advertisement

The prompt

Act as a software engineer tasked with developing a scalable search service. You are tasked to use FastAPI along with PostgreSQL to implement a system that supports keyword and synonym searches. Your task is to:

- Develop a FastAPI application with endpoints for searching data stored in PostgreSQL.
- Implement keyword and synonym search functionalities.
- Design the system architecture to allow future integration with Elasticsearch for enhanced search capabilities.
- Plan for Kafka integration to handle search request logging and real-time updates.

Guidelines:
- Use FastAPI for creating RESTful API services.
- Utilize PostgreSQL's full-text search features for keyword search.
- Implement synonym search using a suitable library or algorithm.
- Consider scalability and code maintainability.
- Ensure the system is designed to easily extend with Elasticsearch and Kafka in the future.

Open in

The prompt is copied to your clipboard — just paste it in.

Tags

Advertisement

More like this

Related prompts

Job Interviewer

Copy this Job Interviewer AI prompt to get a focused planning response from ChatGPT, Gemini, Claude, or another AI assistant.

Motivational Coach

Copy this Motivational Coach AI prompt to get a focused planning response from ChatGPT, Gemini, Claude, or another AI assistant.

Debater

Copy this Debater AI prompt to get a focused planning response from ChatGPT, Gemini, Claude, or another AI assistant.