-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Weakly typed integration - runtime integration
What's involved
- configure
DataSourcepointing to the service spec (service metadata) / endpoint (URL to talk to). - create service proxy for typescript developers. i.e. collection of methods you can invoke without any type checking. Checking only happens at runtime.
- Have base class for service that can declare dependencies on DataSource. The service instance will used in the controllers.
- In LB3, we have a dummy model that associates with the datasource that functions as service proxy. In LB4, we want to get rid of that dummy model.
Questions to answer
Quick spike/ PoC (1 or 2 days)
- create a base service class and declare dependencies on DataSource (configure to use REST/Swagger connector)
- implementation will be delegated to the juggler implementation
- Can reuse REST connector example as the user scenario
- Also consider Proxy in JavaScript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
Coming from discussion with @raymondfeng