Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove postgresql dependency from user-facing API calls #8

Closed
jayaddison opened this issue Dec 3, 2019 · 2 comments
Closed

Remove postgresql dependency from user-facing API calls #8

jayaddison opened this issue Dec 3, 2019 · 2 comments

Comments

@jayaddison
Copy link
Member

This may require splitting the api service into separate microservices, or it may be possible within the existing service.

Either way, it'd be good to remove the API's reliance on postgresql for all calls made by the frontend application.

The elasticsearch search engine is a native distributed datastore and as a result is a better choice to back a high-availability service.

@jayaddison
Copy link
Member Author

From a quick audit, it looks like the following api components depend on relational database functionality:

  • The 'internal' recipe retrieval endpoint at GET /api/recipes/<recipe_id>
    • Could this be replaced with a call to the public GET /api/recipes/<recipe_id>/view endpoint?
  • The redirect endpoint logs to the database
    • This should queue an asynchronous celery task
  • The search endpoint logs to the database
    • This should queue an asynchronous celery task

@jayaddison
Copy link
Member Author

With the database connection-string removed from the API service as part of openculinary/api#67, this issue is now resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant