Comments (7)
Can you check the PR #27 please?
from connector-sdk.
@alexellis What's your preferred way of supporting async function? One possible solution might be add another annotation to function (maybe something like async: true
?)
Is there any suggestion?
from connector-sdk.
@daikeren I think async_invoke
as an env-var would work.
from connector-sdk.
Derek assign: me
from connector-sdk.
I will try to implement this as soon as I can this time this week and will ping 👍
from connector-sdk.
Should I augment this PR to be optional the asynchronous or adding call to the asynchronous gateway path to the connector SDK?
from connector-sdk.
I was thinking of two approaches, amend the asynchronous path to where we configure the gateway URL so now its http://your.ip:port
it would become http://your.ip:port/async-function
/http://your.ip:port/function/
this would be the easiest approach, the second approach would be to add some sort boolean to the ControllerConfig(I need to make sure thats the most appropriate place). The former would just re-vendor the SDK with this simple change %s/function/%s
-> %s/%s
and add logic to the implementations of the connector which will build the gateway URL with async/non-async path appended.
from connector-sdk.
Related Issues (20)
- [Feture Request] Extending Connector SDK with CRUD tasks
- [Feature Request] Include contextual information in responses HOT 4
- Feature: provide a set of results for all invocations caused by a message HOT 7
- Update connector-sdk so that it is namespace-aware HOT 2
- [Feature Request] Possibility to add HTTP Headers to Invoke Function HOT 2
- Fix issue where provider doesn't support namespaces HOT 1
- Connector crashes when no /system/namespaces endpoint available HOT 7
- Is it viable to migrate to Go Modules? HOT 3
- Provide guidance on Rebuild and Upstream timers HOT 2
- Tester build broken due to creds type mismatch
- Support for wildcards in Function Topic HOT 1
- [Proposal] Add ReadFromEnv for the controller config
- Add support for namespaces HOT 2
- What happens when a handler function for a specific event fails
- [Feature Request] Allow to set custom header fields HOT 4
- [Feature Request] Filter functions based on its namespace HOT 1
- Connector-sdk does not set the Content-type when invoking a function HOT 1
- Allow cancellation of topic map go routine
- Send Invoker Response when there are no matching functions HOT 1
- Support question about MQTT Connector HOT 3
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 connector-sdk.