Last year, I sold my shares of Twilio (TWLO 0.94%) in the high $20s for a small profit. At the time, I thought Twilio's decelerating sales growth, lack of profitability, loss of major customers like Uber, and hungry rivals like Vonage Holdings' (VG) Nexmo would crush the stock.

It turned out I was dead wrong, and Twilio now trades in the mid-$50s. I'm kicking myself for missing that rally, but I also believe in taking second chances on missed opportunities. So today, let's take a fresh look at Twilio to see if the stock still has room to run.

A graphic representation of cloud computing

Image source: Getty Images.

What does Twilio do?

Twilio's core cloud service lets developers integrate voice calls, text messages, videos, and other features into their apps with simple APIs (application programming interfaces). In the past, developers created these features on their own -- often a costly, buggy, and time-consuming task.

Twilio simplified the process by hosting those services on the cloud and offering them as paid services, which could be easily scaled up for millions of users. Many large tech companies, including Facebook and Airbnb, outsourced those services to Twilio.

How fast is Twilio growing?

Twilio posted an impressive streak of double-digit revenue growth following its initial public offering in mid-2016:

Metric

Q1 2017

Q2 2017

Q3 2017

Q4 2017

Q1 2018

Revenue

$87.4 million

$95.9 million

$100.5 million

$115.2 million

$129.1 million

Year-over-year growth

47%

49%

41%

41%

48%

Data source: Twilio quarterly reports.

However, a gradual deceleration in Twilio's sales growth attracted the bears -- who were finally scared off by its surprising acceleration during the first quarter.

That acceleration is partly based on seasonal factors. For the current quarter, Twilio expects its revenue to rise 35% to 37% annually -- but that still exceeds analyst expectations for 28% growth.

For the full year, Twilio expects 35% to 36% growth, marking a slowdown from 44% growth in 2017 but also beating expectations for 28% growth. Its closest rivals, Vonage and Bandwidth (BAND 1.84%), are expected to post just 3% and 19% sales growth this year, respectively.

A woman accesses communication apps on her smartphone.

Image source: Getty Images.

Investors should track two other key metrics -- Twilio's base revenue growth, which only includes revenue from customers signing 12-month minimum revenue contribution contracts, and its dollar-based net expansion rate, which measures its revenue growth per existing customer:

Metric

Q1 2017

Q2 2017

Q3 2017

Q4 2017

Q1 2018

Base revenue growth

62%

55%

43%

40%

46%

Dollar-based net expansion rate

141%

131%

122%

118%

132%

Data source: Twilio quarterly reports.

Twilio's accelerating base revenue growth indicates that it's become less dependent on big non-base "variable" customers like Facebook's WhatsApp, which aren't obligated to pay Twilio minimum revenues. Meanwhile, Twilio's accelerating dollar-based net expansion rate indicates that it's growing its revenues per customer by up-selling and cross-selling new services -- which could lock them into its ecosystem over the long term.

But profitability remains elusive...

Twilio's top line growth is impressive, but it still doesn't have a clear path toward profitability. Its non-GAAP (generally accepted accounting principles) operating loss widened from $3.7 million a year ago to $4.7 million, as its GAAP operating loss widened from $14.8 million to $24.3 million.

Twilio's non-GAAP net loss stayed flat year over year at $0.04 per share last quarter (although its share count rose by 7%), but its GAAP net loss widened from $0.16 to $0.25 per share. It expects to post a non-GAAP net loss between $0.05 and $0.06 this quarter, which matches analyst estimates. For the full year, it expects a non-GAAP net loss of $0.07 to $0.10 per share -- which beats expectations for a $0.12 loss.

However, Vonage and Bandwidth are both profitable by GAAP and non-GAAP metrics. Vonage uses its core telephone business to buoy the growth of Nexmo (which generated 31% of its revenues last quarter), while Bandwidth's ownership of its own nationwide IP voice network helps it operate at a higher margin than Twilio:

TWLO Operating Margin (TTM) Chart

TWLO data by YCharts.

The valuations and my verdict

Twilio's growth remains strong, but the stock's 130% rally this year lifted its valuations to uncomfortable levels. At $55, Twilio trades at about 10 times this year's sales. Vonage and Bandwidth trade at about 3 and 4 times this year's sales, respectively.

Those numbers indicate that Twilio's stock is getting pricey relative to its growth potential and its industry peers. That high valuation, along with its lack of profitability, indicates that the risks outweigh the potential rewards at these levels. I regret missing Twilio's year-long rally -- but I'd wait for a pullback before buying the stock again.