Free Sample
+ Collection
Code Files

Heroku Cloud Application Development

Anubhav Hanjura

A comprehensive guide to help you build, deploy, and troubleshoot cloud applications seamlessly using Heroku.
RRP $32.99
RRP $54.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783550975
Paperback336 pages

About This Book

  • Understand the concepts of the Heroku platform: how it works, the application development stack, and security features
  • Learn how to build, deploy, and troubleshoot a cloud application in the most popular programming languages easily and quickly using Heroku
  • Leverage the book's practical examples to build your own "real" Heroku cloud applications in no time

Who This Book Is For

This book is intended for those who want to learn Heroku the right way. Perhaps you are new to Heroku or are someone who has heard about Heroku but have not built anything significant with it. You should have knowledge or familiarity with cloud computing and basic knowledge of database and network deployment.

Table of Contents

Chapter 1: Hello Heroku
What is cloud computing?
Cloud service models
What is cloud application development?
Key advantages of cloud application development
Introducing Heroku
Walking down the memory lane
An overview of Heroku's architecture
The Heroku feature set
Test driving Heroku
Chapter 2: Inside Heroku
The Heroku platform stack
Request routing in Heroku
Heroku's logging infrastructure – the Logplex system
The Heroku add-on architecture
Programmatically consuming Heroku services
The Heroku process architecture
Running applications locally
Setting local environment variables
Process formation
Running a one-off process
Running anything
Chapter 3: Building Heroku Applications
Heroku's guiding influence – the Twelve-Factor App methodology
Creating a Heroku application
Configuring your Heroku application
Introducing buildpacks
The slug compiler
Chapter 4: Deploying Heroku Applications
Deployment on Heroku
Getting a Heroku account
Installing the toolbelt client kit
Logging into the Heroku account
Writing your application
Pushing your application to Heroku
The Git vocabulary
Creating a Heroku remote
Renaming an application
Sending code to Heroku
Optimizing slug size
Cloning existing Heroku applications
Forking an application
Transferring Apps
Optimizing deployments
The choice of a region
Tracking application changes
Release management
Chapter 5: Running Heroku Applications
The Heroku app lifecycle
The Heroku CLI
Running your cloud apps locally
The Apps page
Chapter 6: Putting It All Together
Heroku's support for Java
Integrating Eclipse with Heroku
Managing Heroku apps in Eclipse
Chapter 7: Heroku Best Practices
The One Cloud development platform
Heroku and the data store
Creating a Heroku Postgres database
Disaster recovery in Heroku PostgreSQL
High availability Postgres
When does Heroku Postgres failover?
Configuring domains the right way
Optimizing applications
Managing your app dynos
Using the Heroku scheduler
Using NewRelic to keep the dyno alive
Chapter 8: Heroku Security
Communication between the developer's machine and the Heroku platform
Application security tools
Chapter 9: Troubleshooting Heroku Applications
The need for troubleshooting
Your window to the running app – the logs
Techniques for troubleshooting your app
A recommended Heroku configuration
Maintenance windows
Error classification in Heroku
Chapter 10: Advanced Heroku Usage
Experimenting with Heroku Labs
Introducing Websockets
Heroku and Websockets
Your first Heroku Platform API call
Sharing your app on Heroku

What You Will Learn

  • Recognize the components of the Heroku infrastructure and how they work together to give a seamless platform experience
  • Write an application using any supported language (Ruby, Java, PHP, Python, and more) and deploy it easily and instantly
  • Run and scale your cloud application on demand using a variety of useful Heroku commands
  • Secure and debug your cloud application faster using popular techniques and tools
  • Reuse the provided samples to build agile and robust applications
  • Extend your application features by using simple plugins and add-ons
  • Manage all your applications intuitively using the one-stop Heroku dashboard

In Detail

Heroku is one of the leading cloud platforms supported by several programming languages. It lets you develop applications without worrying about the infrastructure. You can instantly build, deploy, and troubleshoot the most advanced and robust cloud applications using a rich set of available tools. Just write your application and leave the rest to Heroku. Heroku helps you build the most feature-rich web applications using add-ons and multiple data sources that can be easily configured.

This book is about Heroku, but more importantly, it is about the ease with which a developer with limited availability or knowledge of deployment infrastructure can run and manage a cloud app 24/7/365. It will show how Heroku is language independent and does not lock the user to a particular operating environment.


Read More