1,101
questions
0
votes
0
answers
7
views
Ways to synchronize order status on client devices from cloud server
I am building a SAAS cloud service for restaurants.
Assume a specific restaurant has two handheld devices for creating orders and updating orders, these handheld devices talk with the cloud server.
my ...
0
votes
0
answers
60
views
Curl no responsed to telegram bot api
i have trobles with getting data from telegram api, but wery interesting.
I use two computers. one as a server. Both PCs have the same API address.
The second computer works as a server on which I ...
0
votes
1
answer
51
views
Asynchronous event-driven servlet in Tomcat 9 for long polling
I am looking for a best practice to implement the long polling in Tomcat 9, to enable sending messages from the server to the client by using the HTTPS protocol.
Using a synchronous I/O doesn't seem ...
0
votes
0
answers
104
views
How do I detect client disconnect from a long poll to a Spring endpoint
I'm trying to call an endpoint in a Spring application thats using @RestController and @GetMapping. It's doing a long running loop then sending back a ResponseEntity.ok(). The problem I'm encountering ...
0
votes
1
answer
103
views
How to update all clients when a webhook is recieved in Python Flask
I have a Flask server with a webhook endpoint for Meraki Alerts ("host_url/endpoint").
The server also has a page which is supposed to display all recieved alerts ("host_url/view")....
1
vote
1
answer
82
views
HTTP Longpolling with changing request parameters using rxjs
I need to implement HTTP Longpolling using rxjs (in an Angular environment). The challenge is that I need to change the request parameters on every call. To be more specific: I need to change the from/...
1
vote
0
answers
86
views
Laravel rest api - calling SSE or Long polling blocks other HTTP request
I'm working on a Laravel + Vue SPA with a comment module for a ticketing system (helpdesk), aiming to implement real-time comments. I've successfully implemented an SSE with a while loop. However, an ...
0
votes
1
answer
181
views
PHP script doesn't quit when browser connection is closed
NOTE: this is not a duplicate of question 25363635 I'm using php-fpm + apache mod_fcgi + proxy (see below). connection_aborted() and ignore_user_abort() do not work in my case. TLDR is how to make ...
0
votes
0
answers
22
views
During tomcat/jersey shutdown while long polling, the ServletContextListener hook is delayed by 7 seconds, why?
My Setup is Windows10 / eclipse / tomcat8 / jersey.
I have a simple backend that handles some ajax long polling from the front-end.
Now, if there is no front-end running, when I want tomcat to stop, I ...
0
votes
0
answers
33
views
How to occasionally push notifications to mobile applications?
I have a use case where, when when suspicious activity happens on a user's account, I want to show them a pop up in their mobile application. This pop up should appear as soon as they open their app, ...
0
votes
0
answers
86
views
Implementing long polling with python multiprocessing but doesn't work
Here's what I am doing:
def _wait_for_long_poll_resp(param_one, q: Queue):
print("long poll called", flush=True)
sys.stdout.flush()
request_url = <some_url>
auth = <...
0
votes
1
answer
206
views
How can I save a photo from a telegram bot user to a folder on a disk in good quality?
I am creating my telegram bot on LongPollingBot using Japa Spring Boot (for the first time in my life, so I apologize for such a simple question)
How can I save the received photo from the user to ...
0
votes
1
answer
92
views
Long-polling with message queues in a clustered environment
I have a system design question that I'm looking for some guidance on. I have two different systems that need to have a basic level of communication. This is abstracted via message queues.
For ...
0
votes
1
answer
482
views
Bi-Directional Vs Uni-Directional communication
Given that a TCP connection is technically, two way, why do we say Http long polling is unidirectional and web socket is bi-directional? Is it how the long polling standard was implemented and there ...
0
votes
0
answers
307
views
Tomcat, NGINX, Vaadin, Spring Boot and LONG POLLING Push
I'm trying to properly configure LONG POLLING push with Vaadin (Java, Spring Boot), NGINX and Tomcat.
Sometimes Push stops working, and I suspect it may be the reason of some misconfiguration in my ...