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

Prototype fortune router #124

Open
craigedmunds opened this issue Mar 6, 2015 · 0 comments
Open

Prototype fortune router #124

craigedmunds opened this issue Mar 6, 2015 · 0 comments
Labels

Comments

@craigedmunds
Copy link

We envisage the creation of a component that sits in front of multiple instances of fortune, either running in the same process, or remotely, and allows us to use JSON-API semantics and provide other aggregation across service boundaries. This allows a client of this API to interface with a single API and the fact that it’s actually implemented in multiple services to be completely opaque. The services can also be local, in the same service, or remote, again, completely transparent to the consuming client.

This routing component is documented in more detail here.

A simple example of how this could look can be seen here, showing one fortune instance with user and address resources, and another with a flight resource.

The routing component needs to facilitate:

  • cross-service resources as single solid document (GET /resources should return metadata describing both fortune instances)
  • cross-service linking (GET /users?include=flights should work)
  • cross-service compound documents (POSTing a user with associated flights should work)
  • cross-service filtering (GET /flights?filter[user.firstName]=Craig
  • cross-service metadata via /resources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant