Google Cloud Functions with socket.io [closed] - node.js

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
My understanding is that to establish a persistent socket connection using socket.io the Node.js server should be always running. With Google Cloud Functions there isn't an always running Node.js server, so keeping a socket connection alive is not possible.
Is Cloud Run with a running Node.js server the best option to handle multiple socket connections using socket.io ?

UPDATE: From January 2021, GCP Cloud Run supports WebSockets.
Here is the link to the Cloud Run documentation
Here is the link to the blog post (their announcement)

Related

Which framework can I use to autogenerate RestAPI from Database [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 days ago.
Improve this question
I read about SQLBinding in Azure Function app supporting Azure SQL Database to automatically generate APIs based on my database. But that’s preview at the moment.
Is there any framework I could use to do a similar approach in NodeJs Azure function runtime with Postgres oder MongoDb without the need to write the whole boilerplate code for myself?
BR Gerrit

Combining SvelteKit with NodeJs and Express [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
I am completely new to SvelteKit (and development in general). I built several NodeJS apps with express to learn web development.
I now learned the basics of Svelte and SvelteKit (routing etc.), but I struggle to understand how I can use NodeJS code at the backend and SvelteKit at the frontend smoothly.
I understand that I need an adapter. But how can an express-app interact with the client without creating routings conflicts? How can I have backend data and algorythms, that I then send to the client directly or through SvelteKit?
Is there any resource I can read/watch to understand this?
Greetings from a Newbie

how to create multi connection from one machine to test my web server? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I wrote a web server and i want to check his performance when there are multi client request at same time.
This server hold GIS information about any connected client - so the server allocate a lot of memory for each connected client.
The client connected by using browser ( like chrome ).
What i want is to run more then 10K client connection but i don't have more then 10K machine to run browser on each of them.
does there is some other way to do it?
I must know when my server will be crash or slow down.
You can use tools like apachebench, siege, etc.
This wikipedia page has a list of common webserver benchmarking tools: https://en.wikipedia.org/wiki/Web_server_benchmarking

what are the npm module spport Redis Sentinel as a for session store [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I am going to use redis sentinel cluster as a session store in my Node js (express) web application. Could you please list the best npm module for do this.
I found a redis driver. It seem working good.
https://www.npmjs.com/package/ioredis
For sentinel Check out redis-sentinel https://www.npmjs.com/package/redis-sentinel, also please read this link to get a good understanding about it http://engineering.docusign.com/articles/redis-sentinel-client-nodejs/
https://www.npmjs.com/package/redis is a good start.
It's got 4800 stars on github as well

Node.js video chat application [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
How would you implement a video chat application using node.js?
Any resources(tutorials, books, links) or a general gameplan/strategy would be greatly appreciated
Right now there are two Node.js projects for video chat. Both are experimental, but I've heard they work quite well if you can get them running.
https://github.com/webRTC/webrtc.io-client => The current champ for chat.
https://github.com/kdomagal/Web-RTC => Only a demo app
There is a Project that aims at these sorts of problems (http://www.webrtc.org/). I would probably stream the video to the server and then to the client, or wait til the P2P API is ready and then implement a P2P version if you have time to wait.

Resources