Easy Prompt
WritingTextIntermediate

Building a Scalable Search Service with FastAPI and PostgreSQL

Prompt from prompts.chat: Building a Scalable Search Service with FastAPI and PostgreSQL

Prompt Content

Copy and paste directly into your model or internal evaluation tool.

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.

Use Cases

Imported from source sync; refine manually if needed

Reference Output

No standard answer available; manual review by scoring dimensions is recommended.

Scoring Rubric

Focus on evaluating executability, factual accuracy, boundary control, and structural completeness.

Try & save

Fill variables and copy, or save as a personal template.

This template has no variables and is ready to copy.

User Rating

0 ratings
-

Your rating

Log in to rate

Comments

0

Log in to comment

Related Prompts