Skip to content

Full real-time chat application using serverless technology at edge computing, presented as a final paper fulfilling one of the mandatory requirements for approval of B.Sc. Computer Science.

Notifications You must be signed in to change notification settings

mkuchak/chat-on-serverless-edge-computing

Repository files navigation

Live Chat Application on Serverless Edge Computing

This is a final paper (PDF article) presented as one of the mandatory requirements for approval of B.Sc. Computer Science at the Regional University of the Northwest of the State of Rio Grande do Sul.



This project (try demo) focused on exploring technologies involving edge and serverless computing. For this, a complete application was built to run a chat with public chat rooms. The infrastructure provider chosen was Cloudflare due to its excellent ecosystem created, providing several tools for the solution to remain completely at the edge, thus achieving exceptional performance.


Abstract

The work deals with the implementation of a real-time chat system based on Serverless Edge Computing technology. This system, unlike others of its kind, does not use traditional cloud computing infrastructure, which brings numerous advantages to the final product, such as the ability to manage large volumes of traffic, provide low latency and persist the generated data close to the user. To this end, related works were reviewed to identify the main existing solutions for the problem to be addressed, as well as their main limitations. From there, the solution proposal is presented, detailing all the system components and their respective roles. Then, the implementation of the system is carried out and, finally, the results achieved are presented, which proved to be successful. We could see a system capable of handling large volumes of data at low latency. In addition, the system can be easily scaled to meet ever-increasing demands, without the need for major infrastructure investments. As a result, the work demonstrated the feasibility of using Serverless Edge Computing technology to build a real-time chat system, offering a scalable, low-latency and low-cost solution.

Keywords: Fog Computing. Edge Computing. Real Time Application. Chat. Serverless.

How to deploy

Sign in with your Cloudflare dashboard account and the Workers tab. Look for the Account ID, and put it in the ./workers/wrangler.toml file. After that, you need to purchase a paid plan on Workers to try out the Durable Objects service. Once acquired, to perform the deployment just type the following commands in the terminal:

Back-end

# go to the workers folder
$ cd workers

# install Wrangler CLI to deploy
$ npm install -g wrangler

# login to Cloudflare
$ wrangler login

# finally, deploy the workers
$ wrangler publish

Front-end

# back to the main folder
$ cd ..

# copy .env and change the variable according to your endpoint
$ cp .env.example .env

# install dependencies
$ npm install

# build the application
$ npm run build

# start local server
$ npm run start

# you can also easily deploy it on Vercel
# https://vercel.com/

About

Full real-time chat application using serverless technology at edge computing, presented as a final paper fulfilling one of the mandatory requirements for approval of B.Sc. Computer Science.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published