Building a Web Application Using WebSockets and AWS

I am trying to create a collaborative web application in which several users can work together on various (shared) projects. So far I have a JavaScript client and one local jWebSocket server .

To stay scalable during deployment, I thought of two options:

Option 1

I can use AWS IoT instead of multiple jWebSocket servers. Post Changes in the project is easy, I just need to publish, for example /project/{project-id}. But how will the traditional request-response mechanism work?

Sketch option 1

: EC2, , (, /server/1). JS AWS IoT, EC2 . /?


2

jWebSocket EC2 AWS Application Load Balancer. , - . ?

Option 2 sketch

:. , , .


  • jWebSocket AWS IoT .
  • , IoT cognito, / .
  • AWS Lambda - IoT-

    , .

+6
1

. . WebSocket , , .

Servers push messages for unknown clients to the responsible server.

:

  • ,
  • , ,
  • ( ) , ,

"Pusher" SaaS, , , .

0

Source: https://habr.com/ru/post/1014418/


All Articles