gustafnk / microservice-websites Goto Github PK
View Code? Open in Web Editor NEWBuilding consumer-facing websites with multiple teams
Home Page: https://gustafnk.github.io/microservice-websites/
License: MIT License
Building consumer-facing websites with multiple teams
Home Page: https://gustafnk.github.io/microservice-websites/
License: MIT License
What is a good practice to ensure that SPAs from several teams do not use conflicting js library and framework versions? Which are the tradeoffs to make?
Independently developed SPAs rarely use the same version of anything. Three apps from three teams on one page will almost certainly run three different versions of e.g. bootstrap, jquery and some mvc framework, not to mention plugins etc.
Currently the section "local scripts" focuses on load optimization. Do you assume implicitly that the teams coordinate shared versions of libraries, frameworks and plugins and update at a common pace?
...it's nice to now the number of visitors.
Based on feedback from @AlbertBertilsson
Show how script loading can be done with
When discussing local css and js, you have a [hash] in several locations. E.g.
"…which after inclusion becomes:
<link rel="stylesheet" href="/shopping-cart/component/style-[hash].css">
<script src="/shopping-cart/component/script-[hash].js"></script>
What does this [hash] mean?
It's not just static files that ESI is good for, also quite static or semi-dynamic content (not shopping carts).
Hi, thanks for the great post about ESI/CLI. I would like to show you my prototype. Perhaps a great tool to highlight some examples without to run nginx.
https://github.com/hemerajs/momos
I did a mistake about including CSS references (<link rel="stylesheet" src="..." />
) in AJAX responses, i.e. fragments used by h-include
. It doesn't work, so the approach instead needs to be to use a "loader" (like for JS).
I'll update the text when I have the time...
"integrations)? we think"
Reported by @damoberg
I think it's a better title, since websites are most often consumer facing, while web apps are not as often consumer facing.
Feedback from @perokvist
It doesn't need to be a problem for the page if the transcluded service is down, since ESI have support for exception handling attributes.
However, if the transcluded service has performance problems (server overload or for other reason hangs) the page will hang.
There is a timeout (or similar) attribute, I think, but it would still cause the page to hang for T ms, where T is the timeout length.
Of course, depending on where in the HTML response the hanging ESI element is and if the ESI implementation supports streamed responses (I think Varnish does now?)
Especially for headers/footers, SEO things, etc...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.