download & runRedis Labs Enterprise Cluster

Learn more

free download

Connect & useRedis Cloud





By creating your account, you agree to our Terms of Use

Forgot your password?

Not Registered?

Forgot your password?

Enter your email address below to have your password reset. We'll send you an email with a link to change your password.

Your IP address will be logged and monitored for this request.

Cancel

Your password has reset!

We have sent you an email with a link to change your password.

OK

Blog

Posted on by Steven Melendez

How HotelTonight Handles The Demand For Instant Booking And Check-In

Originally published on fastcolabs.com

The app HotelTonight is built around last-minute hotel booking. Users depend on the app to quickly deliver room rates and vacancies, especially when they have a spotty cell connection and it's a busy holiday weekend.

"We can have customers that are standing outside a hotel and booking a room and walking in and expecting to be able to check in," says HotelTonight cofounder and chief architect Chris Bailey.

The app’s backend needs to be able to quickly sync reservations and vacancy information with a range of hotel reservation systems and users’ phones and tablets, so it doesn’t fail to display a convenient deal or, worse, book someone a room that’s already taken, says Bailey. The app's Black Friday traffic peaked at eight times normal load levels, with a $7 room special selling out in under seven minutes.

"Historically in the industry, people aren’t booking so much last minute, but that’s really shifted," he says, thanks to mobile devices. "They can be in the back of a cab; they can be at a bar; maybe they’re at a party and decide, ‘Hey, I don’t want to drive home tonight.’"

To keep data updated in real time even under heavy load, the company uses the speedy Redis, an open source data structure server that is currently sponsored by Pivotal. Bailey says it also helps engineers quickly add and tweak new features and record new stats without painstakingly building traditional database tables.

"We didn’t initially start with Redis, but we pretty quickly figured out a need for it there," he says, explaining the company still uses MySQL for some of its infrastructure. "All these things that you thought well, shoot, I don’t really want to write that to MySQL—it just seems like a lot of overhead, I have to create a table and manage a schema and there’s a lot of overhead—now I just write it to Redis."

The database system also helps with a common issue for HotelTonight: handling network timeouts and other errors in communicating with customers’ devices and third-party services like booking APIs, says Bailey.

Redis includes atomic counters—that is, variables that can be incremented in a single operation so they report and store consistent values even when accessed by multiple processes—which help keep track of how often an API call or other operation has failed.

Partially to avoid focusing too much on the uptime and scaling of Redis and other core services itself, HotelTonight relies on cloud providers, including Amazon Web Services and hosting from Redis Labs, he says.

"It allows us to not have to have as much expertise in house and rely on true experts in those technologies for things like Redis or some of the other services that we use," he says.

That, and the flexibility of the kind of data that can be stored in Redis, make it easy build custom logic to track and handle failures of different types of operations, from rapidly scheduling retries to failing over to alternative providers, says Bailey.

"What’s really nice about that is from the customer perspective we avoid giving them an error message," he says. "There’s no error for the customer; they get what they’re after."

Using Redis also makes database changes more painless, as engineers can effectively tweak what’s stored in the database without rebuilding formally specified SQL tables, which used to require downtime, he says.

"Don’t get me wrong—you will have a schema, so to speak, at some point," he says. "It’s more about how officially defined is it."

Remarkably Simple. Epic Performance.

60

Subscribe

Get the latest blog posts by email

8 32

Redis Watch

Get the hottest Redis news with our
periodic newsletter!

27

Interact with Redis

Enter your Redis commands,
see how fast it responds!

Redis Cloud > |
37 59

Gartner Acknowledges Redis Labs as a Leader

In the 2015 Magic Quadrant for Operational Database Management Systems (ODBMS)

Leaders
47

User Satisfaction and
Market Presence -
Redis Ranked as
#1 NoSQL

g2crowd
64

#2 Database in
User Satisfaction

user satisfaction

g2crowd.com

63

Top 10 Data Stores

Redis in containers
1st
MySQL
2nd
Redis
3rd
MongoDB
4th
PostgreSQL

stackshare.io

45
62

Top 10 Technologies
on Docker

Percent of companies running this technology

Redis in containers

datadoghq.com

28

See Our Open Source Contributions

48

NoSQL Databases
in Containers

Redis in containers

DevOps.com & ClusterHQ.com

11

About Us

Redis Labs is the open source home and commercial provider of Redis, a database benchmarked as the world’s fastest. Gartner has named the company as a Leader in it's 2015 ODBMS Magic Quadrant. Redis Labs' software and service solutions power cutting edge applications with blazing fast enterprise-class Redis and are trusted by thousands of customers for high performance, seamless scalability, true high availability and best-in-class expertise. Redis is ranked the #1 NoSQL (and #2 database) in User Satisfaction and Market Presence by G2 Crowd, the top database technology on Docker by Datadog, the most popular NoSQL database in containers by DevOps.com and ClusterHQ, the #1 NoSQL among Top 10 Data Stores by Stackshare and both the fastest growing database since January 2013 and one of the top three NoSQL databases by DB-engines.

66

Why Redis Labs?

Watch the video
61 53 Stance

"How We Perform
in Peak Times at Sub-millisecond Latencies with Redis Labs"

21

Latest News

19 18 44 7 55
60

Subscribe

Get the latest blog posts by email

8 32

Redis Watch

Get the hottest Redis news with our
periodic newsletter!

27

Interact with Redis

Enter your Redis commands,
see how fast it responds!

Redis Cloud > |
37 59

Gartner Acknowledges Redis Labs as a Leader

In the 2015 Magic Quadrant for Operational Database Management Systems (ODBMS)

Leaders