-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTTP 1.1 Connectivity API - Source (aka Polling) #1542
Comments
I think that is a good idea to use HTTP connection "sources" for configuring polling of HTTP APIs. In order to do that, a "Consumer" for HTTP connection has to be created and started in Regarding the scheduling you asked in #1541: you can use Akka's scheduler to schedule repeating tasks (like the polling). The use of Akka's scheduler could look similar to (used in an Akka actor): Object message = ....;
Cancellable cancellable = getContext().getSystem().scheduler()
.scheduleAtFixedRate(initialDelayFromConfig, intervalFromConfig, getSelf(),
message, context.dispatcher(), ActorRef.noSender()) This will send the |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Thinking about this issue I wondered how the polling would come to its thingIds to work on.
For other connection sources which are always reacting on an "outside" message, there are several ways to get a thingId:
When a source now is triggered by a cron-job/polling, those information sources do not exist, so where do they come from? Ideas:
I think I tend into determining the list of thingIds to poll an HTTP API for via either static configuration of a list or by using an internal search. |
This issue could be superseded by #1609 |
Discussed in #1541
Originally posted by jonaswre December 3, 2022
I have read the whole documentation twice.
Maybe I've missed something obvious, but in many scenarios its necessary to poll devices/gateways/services for data.
Is there any build in way to achieve this?
I would prefer not have to run my own service that polls http endpoints and sends the result to a message broker.
Thanks alot.
The text was updated successfully, but these errors were encountered: