Skip to content

navroop005/Railway-Reservation-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Railway Reservation System

A database project to book railway tickets with main focus on database design,concurrency and scalability.

It is made using Java and PostgreSQL.

It a client-server program where the clients send multiple requests simultaneously, and the server uses multithreading to use all available cores on system to address these requests efficiently.

Client threads read files from Input folder and send data to the server and write response to respective files in Output folder.

Server create a new thread for every client thread. Each thread on server create its own connection to database, process the request, perform changes according to database and send back the response.

ER Diagram

ERD Diagram

Compile and run

Create database named railway_reservation_system in postgres. (make changes to open_database function in Server.java if required)

Compile:

javac -cp ".:./lib/*" -d ./bin ./src/*

Run Server:

java -cp .:./bin:./lib/* Server

Run Client:

java -cp .:./bin:./lib/* client

Contributors

Navroop Singh=2020CSB1101
Nishant Verma=2020CSB1103
Vinit Nana Hagone=20202CSB1361

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •