Show HN: AnyCable – real-time for Next.js, open source alternative to PaaS
You might have heard that scaling WebSocket infrastructure is not an easy task. It was true–until recently.<p>We built the open source real-time server, AnyCable, that deploys to Fly.io in one command (and configures itself), and the SDK for serverless JS&#x2F;TS that allows you to build real-time features without any 3d-party PaaS. We call it a real-time server, because it has WebSockets and more, and it’s easy to run and scale.<p>Here’s all you need to add real-time to your Next.js&#x2F;Vercel app:<p>– Deploy AnyCable to Fly.io with one command (see the docs)<p>– In your Vercel app add one serverless function (copy from docs)<p>– That’s it! Now you can write our business logic using AnyCable Serverless SDK :<a href="https:&#x2F;&#x2F;github.com&#x2F;anycable&#x2F;anycable-serverless-js">https:&#x2F;&#x2F;github.com&#x2F;anycable&#x2F;anycable-serverless-js</a><p>Benefits:<p>– Pay for the gas, not the taxi (unlike the PaaS)<p>– Own and control data<p>– Get as much flexibility to build out features as possible<p>– No vendor lock because it&#x27;s open source<p>– Proven and tested abstractions–channels and subscriptions<p>– Guaranteed delivery and restoration of any messages lost due to connectivity issues<p>– Stability: we ensure auto scaling, smooth reconnection on deployment, fallbacks from WebSockets to other transport, and many more<p>– Integration with GraphQL ecosystem<p>Demo Next.js+Vercel+AnyCable chat app:<p>- live app: <a href="https:&#x2F;&#x2F;vercel-anycable-demo.vercel.app" rel="nofollow noreferrer">https:&#x2F;&#x2F;vercel-anycable-demo.vercel.app</a><p>- source code: <a href="https:&#x2F;&#x2F;github.com&#x2F;anycable&#x2F;vercel-anycable-demo">https:&#x2F;&#x2F;github.com&#x2F;anycable&#x2F;vercel-anycable-demo</a><p>AnyCable: <a href="https:&#x2F;&#x2F;github.com&#x2F;anycable&#x2F;anycable">https:&#x2F;&#x2F;github.com&#x2F;anycable&#x2F;anycable</a><p>We hope you will give it a try and tell us what you think!