Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Split up between an actual front-end and application server #55

Open
moretea opened this issue Jan 4, 2017 · 2 comments
Open

Split up between an actual front-end and application server #55

moretea opened this issue Jan 4, 2017 · 2 comments

Comments

@moretea
Copy link
Contributor

moretea commented Jan 4, 2017

Currently the two concerns are conflated in one repository.

It's probably better to have a separate front-end that only has javascript assets that are executed by the client, and the application server that delegates requests the the end servers.

Browsing quickly through the endpoints offered in e.g. https://github.com/microservices-demo/front-end/blob/master/api/user/index.js, it might be more suitable to just handle this with a rewrite rule in the edge-router.

@rberlind
Copy link
Contributor

This would cause a problem in some platforms such as Apcera which use their own built-in router. For instance, on Apcera, we do not run the edge-router service. Instead, we connect browsers directly to the front-end service.

@moretea
Copy link
Contributor Author

moretea commented Mar 30, 2017

In that case it might make sense to push those assets to a CDN, or have a "fake CDN" by running nginx container that only contains these assets.

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

No branches or pull requests

2 participants