How to Stop a Node Server: Handling Node.js Errors on Shutdown

engineering , Principal Developer Advocate

This blog post is adapted from a talk given by Julián Duque at NodeConf EU 2019 titled "Let it crash!."

Before coming to Heroku, I did some consulting work as a Node.js solutions architect. My job was to visit various companies and make sure that they were successful in designing production-ready Node applications. Unfortunately, I witnessed many different problems when it came to error handling, especially on process shutdown. When an error occurred, there was often not enough visibility on why it happened, a lack of logging details, and bouts of downtime as applications attempted to recover from crashes.

Julián: Okay. So, as Brian said, my name is Julián Duque, it will be...


Improving the Lives of People with Diabetes

life , Online Sales

An illustration of metrics and a graph in the shape of a heart

Today, many people with diabetes are choosing to manage their condition using devices called continuous glucose monitors (CGMs). Not only do they replace the need for most finger prick testing, but they also provide a stream of data round the clock. However, like all data, it’s only as useful as the tools that analyze it.

That’s where Sugarmate comes in. Created by serial entrepreneur Josh Juster to help manage his own condition, Sugarmate combines a Heroku back-end with web, mobile, and smartspeaker apps to provide life-changing alerts and analysis for people living with diabetes.

Alexa, what’s my blood sugar level?

For 26 years, Josh has himself been living with type 1 diabetes, and...


Announcing Heroku Data Services Integrations Using mutual TLS and PrivateLink

news , Product Management Director, Heroku Data

Today, we’re thrilled to announce four new trusted data integrations that allow data to flow seamlessly and securely between Heroku and external resources in public clouds and private data centers:

  • Heroku Postgres via mutual TLS
  • Heroku Postgres via PrivateLink
  • Apache Kafka on Heroku via PrivateLink
  • Heroku Key-Value Store via PrivateLink

These integrations expand Heroku's security and trust boundary to cover the connections to external resources and the data that passes through them. They enable true multi-cloud app and data architectures and keep developers focused on delivering value versus managing infrastructure. Data is the driving force in modern app development, and these...


Static Typing in Ruby with a Side of Sorbet

engineering , Web Services Engineer

As an experiment to see how static typing could help improve our team’s Ruby experience, we introduced Sorbet into a greenfield codebase with a team of 4 developers. Our theory was that adding static type checking through Sorbet could help us catch bugs before they go into production, make refactoring easier, and improve the design of our code. The short answer is that yes, it did all of that! Read on to learn a little more about what it was like to build in a type safe Ruby.

The Sorbet project's logo

...


Overcoming My Fear of Failure

life , Director, Software Engineering

As part of my MBA at Carnegie Mellon University, I enrolled in a Leadership development certificate program. I was given the opportunity to work with an amazing Leadership Coach, (Laura Maxwell). Laura helped me on my journey of "overcoming my fear of failure". As part of the program, I was able to share my story with the dean, professors, and the leadership development center at CMU. Since this is a rather common experience, I wanted to share my story with all of you as well.

This story starts, as many do, in childhood. Growing up in India, there has always been the expectation that everyone gets good scores in tests and succeeds in any initiative they take part in. This...


Browse the blog archives or subscribe to the full-text feed.