Skip to content

Latest commit

 

History

History

definitive-hotels-async

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Definitive Hotels

This project uses the model defined Cassandra: The Definitive Guide.

This project defines two repositories, HotelRepository and ReservationRepository to query information about hotels and reservations. You can read the hotels.cql and reservations.cql.

As defined in the book there are nine queries this schema tries to answer:

  1. Find hotels near given poi
  2. Find information about a hotel
  3. Find pois near a hotel
  4. Find available rooms by hotel / date
  5. Find amenities for a room
  6. Find reservations by confirmation number
  7. Find reservations by hotel and date
  8. Find reservations by guest name
  9. Find guest by ID

You can see how queries are defined in their respective repositories. INSERT statements are defined the test folder.

Async operations

This repository shows one way to use the asynchronous operations available on Helenus. Part of this is present on the repositories, and another part is on the tests, be sure to check both.