AeroTools
Home AI Prompts Building a Scalable Search Ser...

Building a Scalable Search Service with FastAPI and PostgreSQL

chatgpt development 1 uses
Free
ما فائدة هذا البرومبت؟

مخصص للمطورين والمبرمجين لتوجيه الذكاء الاصطناعي لكتابة، مراجعة، أو تصحيح الأكواد البرمجية بكفاءة.

أبرز حالات الاستخدام:
  • توليد أكواد برمجية نظيفة (Clean Code)
  • اكتشاف الثغرات الأمنية وإصلاح الأخطاء البرمجية
  • شرح الأكواد المعقدة وتوثيقها بوضوح
الفوائد والنتائج:
  • زيادة سرعة التطوير والإنتاجية بنسبة 50%
  • أكواد برمجية متوافقة مع أفضل المعايير الأمنية
  • سهولة دمج وتوسيع الأكواد الموّلدة
الذكاء الاصطناعي الأفضل: Claude 3.5 Sonnet (موصى به للأكواد), GPT-4o, GitHub Copilot

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.

Related Prompts

AeroTools

AeroAssistant

Online AI
Hello! I am your official AeroTools AI Assistant. How can I help you use our tools today?