How To: Better Serverless Chat on AWS over WebSockets
dev.to·21h·
Discuss: DEV
Flag this post

When I first wrote about building a serverless chat on AWS using AppSync Events, it was lacking two key capabilities:

  • two-way communication over WebSockets, and
  • message persistence on publish

Since then, AppSync Events API received some improvements, including these two capabilities that it initially lacked. Having tested this first hand on a simple example, my aim with this post is to share impressions of what now seems to be a way more complete service offering. Spoiler alert - the impressions are rather good, and make sure to stick around to the end as code example is included!

Before

There were some workarounds proposed at the time by AWS themselves, but mine was maybe a bit more robust, coming with the complexity trade-off. You can read the previous article [here](https…

Similar Posts

Loading similar posts...