hotelReservation

module
v0.0.0-...-56d2f63 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2021 License: MIT

README

Hotel Reservation

The application implements a hotel reservation service, build with Go and gRPC, and starting from the open-source project https://github.com/harlow/go-micro-services. The initial project is extended in several ways, including adding back-end in-memory and persistent databases, adding a recommender system for obtaining hotel recommendations, and adding the functionality to place a hotel reservation.

Supported actions:

  • Get profile and rates of nearby hotels available during given time periods
  • Recommend hotels based on user provided metrics
  • Place reservations

Pre-requirements

  • Docker
  • Docker-compose
  • luarocks (apt-get install luarocks)
  • luasocket (luarocks install luasocket)

Running the social network application

Before you start
  • Install Docker and Docker Compose.
  • Make sure exposed ports in docker-compose files are available
  • Replace x.x.x.x in config.json with ip address of your servers
Start docker containers

Start docker containers by running docker-compose up -d. All images will be pulled from Docker Hub.

workload generation
$WRK_DIR/wrk -D exp -t <num-threads> -c <num-conns> -d <duration> -L -s ./wrk2_lua_scripts/mixed-workload_type_1.lua http://x.x.x.x:5000 -R <reqs-per-sec>
Questions and contact

You are welcome to submit a pull request if you find a bug or have extended the application in an interesting way. For any questions please contact us at: microservices-bench-L@list.cornell.edu

Directories

Path Synopsis
cmd
geo
services
geo
geo/proto
Package geo is a generated protocol buffer package.
Package geo is a generated protocol buffer package.
profile/proto
Package profile is a generated protocol buffer package.
Package profile is a generated protocol buffer package.
rate/proto
Package rate is a generated protocol buffer package.
Package rate is a generated protocol buffer package.
search/proto
Package search is a generated protocol buffer package.
Package search is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL