-
Notifications
You must be signed in to change notification settings - Fork 0
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
Design notes. #1
Comments
koa's response and request objects are not compatible with node's native ones, so that koa may not be a choice unless abandon node-http-proxy. Another difficulty is that if the resources are not under user namespace, e.g.
For authentication for these requests, there are two methods to use:
|
Another approach is add complex logic in the gateway. This requires we implements mu-gateway as a library. This may be helpful if we want to add A&A for legacy systems without A&A, for example, the open source docker registry, consul, and so on. |
The third method is implement database plugin for common databases like mysql, mongo or postgre, and response for A&A query. |
The function we need can be decoupled as three independent micro-service:
How does this architecture work together with other service? Typically we only need to solve CRUD.
|
Use koa or express for handling routes, use es6 rest syntax.
Use middleware passport and passport-local-mongoose for fetching user info.
The text was updated successfully, but these errors were encountered: