Comments (1)
First of all thanks for your immense patience. Crazy times.
Can we use same technique witch SPA on React?
Yes, my original implementation was for AngularJs 1.x. The logic is essentially the same, the toolchain obviously might affect some of the design.
I'm wondering, that composition should happen on presentation layer, or it can be a gateway? If it is a gateway, and its down, feels like all services would become unavailable, or that's not an issue?
That's a good point. I think we need to first define what kind of "layers" we're discussing here. If they are physical layers then there is only a technical difference between implementing this at the presentation layer or at the gateway. If we're talking about logical layers then the gateway is part of the presentation layer making it irrelevant where the implementation is crafted.
The composition gateway should be (and I see no good reasons why it shouldn't) stateless, which means that it can be made highly available and horizontally scaled out making the "it's down" problem less relevant. where to implement the composition is a decision driven by multiple factors, there is no ubiquitous answer. For example:
- are clients only desktop machines on a high bandwidth connection? It might make sense to implement the composition process at the browser/client level (e.g. in React)
- are client mobile devices only? Implementing composition at the client might mean a lot of outgoing connections which might have a significant impact on the overall performance on low bandwidth/high latency connections
- are the client technologically homogenous (e.g. all browsers and all React)? then implement in the client; otherwise, move the composition to the gateway to shield it from different technology stacks used at the clients
These are just a few out of a lot of consideration that needs to be made. There might be even cases in which a mixed scenario makes sense.
In any case, I don't see the availability of the gateway as an issue. It's more of an operations problem that when dealing with a stateless component can be "easily" addressed.
Toughts?
from servicecomposer.aspnetcore.
Related Issues (20)
- Add IConfiguration to ViewModelCompositionOptions HOT 8
- Dealing with exception handling from ViewModelAppenders inside a composition HOT 1
- Question: Any thoughts on where composition should occur when using Blazor? HOT 16
- Question: Thoughts on integrating viewmodel composition output with signalr? HOT 13
- Is the HTTP attribute needed for subscribers?
- Make EnableWriteSupport() the default behavior
- Scatter/Gather support
- Test if it works when trimming and using native AOT in .NET 8
- EndpointScopedViewModelFactory not found HOT 4
- Investigate the IEndpointMetadataProvider interface and its usage in generating documentation (former Swagger)
- Investigate how to get rid of Json.Net and use System.Text.Json
- Drop EnableWriteSupport in v4.0.0
- Obsolete EnableWriteSupport with an error
- Target only .NET 8
- Remove MapCompositionHandlers(this IEndpointRouteBuilder endpoints, bool enableWriteSupport)
- When write support is disabled provide a better error than 404
- Add .NET 8 as a target framework
- Make model bind throw on binding errors, with an option to disable
- Better visualizations using OpenTelemetry
- Remove the requirement for Http* attributes for subscribers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicecomposer.aspnetcore.