Comments (3)
This turned out to be pretty straightforward thanks to the structure of things. master...reconbot:reconbot/onSendMessage will make a pr if you're interested in it.
from subscriptionless.
I did some more research and experimenting.
I think I can make some changes to the arc sandbox to support the ApiGatewayManagementApi
directly, however it would need a custom endpoint configuration as arc can only provide http in development and the way you make the endpoint uri out of the domain and stage in the event assumes https. (You don't specify a protocol but it seems to figure it out.)
It seems having a custom management endpoint isn't out of the question;
The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://
[api-id].execute-api.[region].amazonaws.com/[stage]
, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.
So if it makes more sense a configurable endpoint might do the trick.
from subscriptionless.
Thanks for taking the time to make this suggestion!
So if it makes more sense a configurable endpoint might do the trick.
Best case scenario would probably be exactly this - the reason being, there are likely going to be more and more occasions where interfacing with the AWS API will take place:
- Writing to DynamoDB
- Communicating with API Gateway
- Invoking Lambda functions
❓ (TBD)
If you use a local endpoint, regardless of how the implementation details change, you'll always be able to mock/implement a local environment however you need. I couldn't necessarily give that guarantee if we were to create an escape hatch for each interaction with AWS (and there's also the argument of differing logic between dev/deployed environments).
In terms of how this would integrate with Architect, I don't know much about it but Serverless have managed to get this working using local endpoints. Might be worth opening an issue with them also!
from subscriptionless.
Related Issues (18)
- Add batching by topic for published events
- Optimize execution of user event handlers
- Subscription Input HOT 3
- Add clean exit for expected state machine states
- Add ability to customize payload in connection_ack
- Mutation and Query Support HOT 12
- Context connectionId HOT 2
- Sockets closed by the server don't contain a "Close Code" or "Close Reason"
- Add support for @defer and @stream directives
- Use alongside Apollo Server HOT 2
- Allow custom domain mappings HOT 9
- Add CloudFlare support HOT 1
- withFilter example & typings HOT 2
- One or more parameter values were invalid: Condition parameter type does not match schema type HOT 3
- Socket idleness detection HOT 6
- Add TTL for subscriptions
- Add storage adapters HOT 4
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 subscriptionless.