Questions tagged [websockets]
WebSocket is an API and a protocol for bi-directional, full-duplex communication that is closely associated with HTML5 and implemented in recent versions of most web browsers.
140 questions
1 vote
3 answers
379 views
Why is short polling considered an antipattern for event-sourced systems?
I have an application with very strict requirements around auditing and the "replayability" of user actions. For this reason, I've chosen an event-sourced architecture because of its append-...
1 vote
0 answers
254 views
Approach for Proxying WebSocket Secure (WSS) Connections
I'm currently working on a project where I have a WebSocket Secure (WSS) server and a WSS client. The client establishes a WebSocket connection over TLS to the server, which enables bi-directional ...
0 votes
1 answer
630 views
Using both websocket and REST for the application requiring two-way communication
I am currently implementing front-end part of the collaborative application requiring two-way live communication between server and the web app. Cloud service responsible for the data exchange will be ...
0 votes
0 answers
48 views
Identify user session for dynamic client interaction between a Cloud application and an Angular/Pyramid application
I’m writing a web application with an Angular client and a Pyramid/Python server. I need to dynamically interface with an external cloud application, with two requirements: When the end user approves ...
1 vote
3 answers
2k views
Should I use a REST API in addition to websockets?
I am writing a web application for a simple, multiplayer dice game so the traffic from the client to the server is going to be pretty light and latency tolerant. The client will need real-time updates ...
1 vote
3 answers
352 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 example,...
1 vote
1 answer
200 views
Client-Server-Architecture: Move computation logic from client to backend - Algorithm needs certain new values while running (User input) and continue
Background: At work I was tasked with developing a new demo web client to replace our Windows Form application in the future. Our back-end is developed in Java and works stateless as REST services. ...
3 votes
1 answer
933 views
Is websocket connection a driving adapter or driven adapter in hexagonal architecture
I am creating an application using hexagonal architecture. The application uses WebSocket connections to communicate with some outside clients. Communication works in both ways. the client can send a ...