front-end icon indicating copy to clipboard operation
front-end copied to clipboard

Split up between an actual front-end and application server

Open moretea opened this issue 8 years ago • 2 comments

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.

moretea avatar Jan 04 '17 16:01 moretea

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.

rberlind avatar Mar 30 '17 14:03 rberlind

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.

moretea avatar Mar 30 '17 16:03 moretea