Skip to content

007tickooayush/bun-redis-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bun Redis Adapter

A project implementing load balancing using @socket.io/redis-adapter and Express as the server for handling HTTP requests and socket events.

Description

This project aims to provide load balancing capabilities for socket.io applications using the @socket.io/redis-adapter package. It utilizes Express as the server to handle both HTTP requests and socket events.

Features

  • Load balancing of socket.io connections using @socket.io/redis-adapter
  • Handling of HTTP requests using Express
  • Handling of socket events using Express

Installation

  1. Clone the repository:

    git clone https://github.com/007tickooayush/bun-redis-socket.git
  2. Install the dependencies:

    bun install

Usage

  1. Start the server:

    bun run dev
  2. Access the application in your browser at http://localhost:3002 or http://localhost:3003.

Configuration

The following environment variables can be configured:

  • REDIS_URL: The URL of the Redis server (default: redis://localhost:6379)
  • PORT: The port on which the server should listen (default: 3009 or 3010)

License

N/A

About

A Bun project made for portraying the concepts of load balancing ready application for sockets interaction along with http requests.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published