Biggest changeYear ended December 31, 2022 2021 (in thousands) Consolidated Statement of Operations: Revenue $ 432,725 $ 354,330 Cost of revenue (1) 222,944 167,002 Gross profit 209,781 187,328 Operating expenses: Research and development (1) 155,308 126,859 Sales and marketing (1) 179,869 152,645 General and administrative (1) 120,803 126,845 Total operating expenses 455,980 406,349 Loss from operations (246,199) (219,021) Net gain on extinguishment of debt 54,391 — Interest income 7,044 1,282 Interest expense (5,887) (5,245) Other income (expense), net (29) 356 Loss before income tax expense (benefit) (190,680) (222,628) Income tax expense (benefit) 94 69 Net loss attributable to common stockholders $ (190,774) $ (222,697) Year ended December 31, 2022 2021 Consolidated Statements of Operations, as a percentage of revenue:* Revenue 100 % 100 % Cost of revenue 52 47 Gross profit 48 53 Operating expenses: Research and development 36 36 Sales and marketing 42 43 General and administrative 28 36 Total operating expenses 105 115 Loss from operations (57) (62) Net gain on extinguishment of debt 13 — Interest income 2 — Interest expense (1) (1) Other income (expense), net — — Loss before income taxes (43) (63) Income tax expense (benefit) — — Net loss attributable to common stockholders (43) % (63) % __________ * Columns may not add up to 100% due to rounding. 73 Revenue Year ended December 31, Change 2022 2021 $ Change % Change (in thousands) Revenue $ 432,725 $ 354,330 $ 78,395 22 % Revenue was $432.7 million for the year ended December 31, 2022 compared to $354.3 million for the year ended December 31, 2021, an increase of $78.4 million, or 22%.
Biggest changeYear ended December 31, 2023 2022 (in thousands) Consolidated Statement of Operations: Revenue $ 505,988 $ 432,725 Cost of revenue 239,660 222,944 Gross profit 266,328 209,781 Operating expenses: Research and development 152,190 155,308 Sales and marketing 191,773 179,869 General and administrative 116,077 120,803 Impairment expense 4,316 — Total operating expenses 464,356 455,980 Loss from operations (198,028) (246,199) Net gain on extinguishment of debt 52,416 54,391 Interest income 18,186 7,044 Interest expense (4,051) (5,887) Other expense, net (1,832) (29) Loss before income tax expense (133,309) (190,680) Income tax expense (benefit) (221) 94 Net loss attributable to common stockholders $ (133,088) $ (190,774) 78 The following tables set forth our results of operations for the period presented as a percentage of our revenue: Year ended December 31, 2023 2022 Consolidated Statements of Operations, as a percentage of revenue:* Revenue 100 % 100 % Cost of revenue 47 52 Gross profit 53 48 Operating expenses: Research and development 30 36 Sales and marketing 38 42 General and administrative 23 28 Impairment expense 1 — Total operating expenses 92 105 Loss from operations (39) (57) Net gain on extinguishment of debt 10 13 Interest income 4 2 Interest expense (1) (1) Other income (expense), net — — Loss before income tax expense (26) (43) Income tax expense (benefit) — — Net loss attributable to common stockholders (26) % (43) % __________ * Columns may not add up to 100% due to rounding.
In the event that there are errors in software, failures of hardware, damages to a facility or misconfigurations of any of our services—whether caused by our own error, security breaches, third-party error, or natural disasters—we could experience lengthy interruptions in our platform as well as delays and additional expenses in arranging new facilities and services.
In the event that there are errors in software, failures of hardware, damages to a facility or misconfigurations of any of our services, whether caused by our own error, security breaches, third-party error, or natural disasters, we could experience lengthy interruptions in our platform availability as well as delays and additional expenses in arranging new facilities and services.
During times of war and other major conflicts, we, the third parties upon which we rely, and our customers may be vulnerable to a heightened risk of these attacks, including retaliatory cyber-attacks, that could materially disrupt our systems and operations, supply chain, and ability to produce, sell and distribute our goods and services.
During times of war and other major conflicts, we, the third parties upon which we rely, and our customers may be vulnerable to a heightened risk of these attacks, including retaliatory cyber- 71 attacks, that could materially disrupt our systems and operations, supply chain, and ability to produce, sell and distribute our goods and services.
For the year ended December 31, 2021, cash used in investing activities was $794.5 million, primarily consisting of $928.2 million in purchases of marketable securities, $34.8 million of payments related to purchases of property and equipment 78 to expand our network, and $13.5 million of additions to capitalized internal-use software.
For the year ended December 31, 2021, cash used in investing activities was $794.5 million, primarily consisting of $928.2 million in purchases of marketable securities, $34.8 million of payments related to purchases of property and equipment to expand our network, and $13.5 million of additions to capitalized internal-use software.
Over the long term we expect gross margin to increase as we continue to drive efficiencies in our operations. However, our gross margin may fluctuate from period to period. Research and Development Research and development expenses consist primarily of personnel costs, including salaries, benefits, bonuses, and stock-based compensation.
Over the long term we expect gross margin to increase as we continue to drive efficiencies in our operations and increase in revenue. However, our gross margin may fluctuate from period to period. Research and Development Research and development expenses consist primarily of personnel costs, including salaries, benefits, bonuses, and stock-based compensation.
Factors Affecting Our Performance Winning New Customers We are focused on continuing to attract new customers, including those in new vertical markets, and expanding our relationship with existing customers, by enhancing our product experience, investing in technology,, and leveraging our partner ecosystem.
Factors Affecting Our Performance Winning New Customers We are focused on continuing to attract new customers, including those in diverse vertical markets, and expanding our relationship with existing customers, by enhancing our product experience, investing in technology, and leveraging our partner ecosystem.
In addition, there can be no assurance that we are adequately prepared for unexpected increases in bandwidth demands by our customers, particularly when customers experience cyber-attacks.
In addition, there can be no assurance that we are adequately prepared for unexpected increases in bandwidth demands by our customers, particularly when we or our customers experience cyber-attacks.
We will continue to invest in our products and features and developer outreach, leveraging it as a cost-efficient approach to attracting new customers, and our sales and marketing programs, including various online marketing activities as well as targeted account-based advertising. 66 We are continuing to bring a durable, consistent, and predictable pipeline of new innovations to our edge cloud platform and software-defined modern network architecture, and are seeing interest from customers in our existing product lines like Network Services and Security, and newer product lines like Compute and Observability.
We will continue to invest in our products and features and developer outreach, leveraging it as a cost-efficient approach to attracting new customers, and our sales and marketing programs, including various online marketing activities as well as targeted account-based marketing. 70 We are continuing to bring a durable, consistent, and predictable pipeline of new innovations to our edge cloud platform and software-defined modern network architecture, and are seeing interest from customers in our existing product lines like Network Services and Security, and newer product lines like Compute and Observability.
Even if our customers expand their usage of our platform, we cannot guarantee that they will maintain those usage levels for any meaningful period of time or that they will renew their commitments. The data localization and cross-border data transfer issues described above also impact current customers' usage of our products and services.
Even if our customers expand their usage of our platform, we cannot guarantee that they will maintain those usage levels for any meaningful period of time or that they will renew their commitments. The data localization and cross-border data transfer issues described above also impact current customers ’ usage of our products and services.
Content streaming organizations leverage Fastly's platform to deliver content to 64 users around the world and those that livestream gain easy access to enormous edge compute resources for even greater reliability. The range of applications that developers build with our edge cloud platform continues to expand rapidly.
Content streaming organizations leverage Fastly’s platform to deliver content 68 to users around the world and those that livestream gain easy access to enormous edge compute resources for even greater reliability. The range of applications that developers build with our edge cloud platform continues to expand rapidly.
For example, to calculate our DBNER for the trailing 12 months ended December 31, 2022, we divide (i) revenue, for the trailing 12 months ended December 31, 2022, from customers that entered into a customer agreement on or before December 31, 2022, and that remained customers as of December 31, 2022, by (ii) revenue for the trailing 12 months ended December 31, 2021 from the same set of customers.
For example, to calculate our DBNER for the trailing 12 months ended December 31, 2023, we divide (i) revenue, for the trailing 12 months ended December 31, 2023, from customers that entered into a customer agreement on or before December 31, 2023, and that remained customers as of December 31, 2023, by (ii) revenue for the trailing 12 months ended December 31, 2022, from the same set of customers.
For contracts with multiple performance obligations that are delivered over different time periods, we allocate the contract transaction price to each performance obligation using the estimated standalone selling price ("SSP") of each distinct good or service in the contract. Judgment is required to determine the SSP for each distinct performance obligation.
For contracts with multiple performance obligations that are delivered over different time periods, we allocate the contract transaction price to each performance obligation using the estimated standalone selling price ( “ SSP”) of each distinct good or service in the contract. Judgment is required to determine the SSP for each distinct performance obligation.
An identifiable operating entity is defined as a company, a government entity, or a distinct business unit of a larger company that has a relationship with us through direct sale or through one of our reseller partners where charges are identified on an end-customer basis.
An identifiable operating entity is defined as a company, a government entity, or a distinct business unit of a larger company that has a relationship with us through direct sales or through one of our reseller partners where charges are identified on an end-customer basis.
These commitments will generally be settled with existing cash on hand, cash generated from operations and our current or any future financing arrangements. 79 Critical Accounting Estimates We prepare our consolidated financial statements in accordance with U.S. GAAP.
These commitments will generally be settled with existing cash on hand, cash generated from operations and our current or any future financing arrangements. 85 Critical Accounting Estimates We prepare our consolidated financial statements in accordance with U.S. GAAP.
Our ability to retain customers and expand their usage could be impaired for a variety of reasons, including a customer moving to another provider or reducing usage within the term of their contract to their minimum usage commitment.
Our ability to retain customers and expand their usage could be impaired for a variety of reasons, including a customer moving to another provider or reducing usage within the term of their contract.
Our estimates of fair value are based on assumptions believed to be reasonable, but which are inherently uncertain and, as a result, actual results may 80 differ from estimates.
Our estimates of fair value are based on assumptions believed to be reasonable, but which are inherently uncertain and, as a result, actual results may 86 differ from estimates.
For the year ended December 31, 2021, cash provided by financing activities was $936.6 million, primarily consisting of $930.8 million of proceeds from the issuance of the Notes, net of issuance costs, $8.1 million in proceeds from the employee stock purchase plan ("ESPP") and $12.6 million in proceeds from stock option exercises by our employees and directors.
For the year ended December 31, 2021, cash provided by financing activities was $936.6 million, primarily consisting of $930.8 million of proceeds from the issuance of the Notes, net of issuance costs, $8.1 million in proceeds from the ESPP and $12.6 million in proceeds from stock option exercises by our employees and directors.
The proportion of the revenue contribution between new and existing customers is consistent with prior periods and typical customer behavior as customers tend to contribute more revenue over time as their use of the platform increases. The remainder of our revenue was generated by other products and services.
The proportion of the revenue contribution between new and existing customers is consistent with prior periods and typical customer behavior as customers tend to contribute more revenue over time as their use of the platform increases. The remainder of our revenue was generated by our other products and services, including support and professional services.
Our cash, cash equivalents, and marketable securities primarily consisted of bank deposits, money market funds, investment-grade commercial paper, corporate notes and bonds, U.S. treasury securities, municipal securities, foreign government and supranational securities and asset-backed securities held at major financial institutions. As of December 31, 2022, our marketable securities balance includes $165.1 million of marketable securities that were classified as non-current.
Our cash, cash equivalents, and marketable securities primarily consisted of bank deposits, money market funds, investment-grade commercial paper, corporate notes and bonds, U.S. treasury securities, municipal securities, foreign government and supranational securities and asset-backed securities held at major financial institutions. As of December 31, 2023, our marketable securities balance includes $6.1 million of marketable securities that were classified as non-current.
Utilizing our direct sales force, we have multiple selling points within organizations to acquire new customers and increase usage from our existing customers. We will continue to increase our discretionary marketing spend, including account-based and brand spend, to drive the effectiveness of our sales teams.
Utilizing our direct sales force, we have multiple selling points within organizations to acquire new customers and increase usage from our existing customers. We will continue to increase our discretionary marketing spend, including account-based, targeted demand generation and brand spend, to drive the effectiveness of our sales teams.
For additional details, refer to the section titled "Risk Factors." Expanding into New Vertical Markets and within Our Existing Customer Base We aim to continue to add customers from a diverse set of industry verticals through our differentiated platform that offers a broad range of capabilities.
For additional details, refer to the section titled “Risk Factors.” Expanding into New Markets and within Our Existing Customer Base We aim to continue to add customers from a diverse set of industry verticals through our differentiated platform that offers a broad range of capabilities.
Our NRR measures the net change in monthly revenue from existing customers in the last month of the period (the “current" period month) compared to the last month of the same period one year prior (the “prior" period month) and includes revenue contraction due to billing decreases or customer churn, revenue expansion due to billing increases, but excludes revenue from new customers.
Our NRR measures the net change in monthly revenue from existing customers in the last month of the period (the “current” period month) compared to the last month of the same period one year prior (the “prior” period month) and includes revenue contraction due to billing decreases or customer churn and revenue expansion due to billing increases, but excludes revenue from new customers.
Customer accounts acquired in 2018, 2019, 2020, 2021 and 2022 are referred to as the 2018 Cohort, 2019 Cohort, 2020 Cohort, 2021 Cohort and 2022 Cohort, respectively.
Customer accounts acquired in 2019, 2020, 2021, 2022 and 2023 are referred to as the 2019 Cohort, 2020 Cohort, 2021 Cohort, 2022 Cohort and 2023 Cohort, respectively.
We separately monitor customer retention and churn on an annual basis by measuring our annual revenue retention rate, which we calculate by multiplying the final full month of revenue from a customer that terminated its contract with us (a "Churned Customer") by the number of months remaining in the same calendar year ("Annual Revenue Churn").
Annual Revenue Retention Rate (“ARR”) We separately monitor customer retention and churn on an annual basis by measuring our annual revenue retention rate, which we calculate by first multiplying the final full month of revenue from a customer that terminated its contract with us (a “ Churned Customer ” ) by the number of months remaining in the same calendar year to get our “ Annual Revenue Churn ” .
As of December 31, 2022, our global network is located in 79 markets across 35 countries.
As of December 31, 2023, our global network is located in 79 markets across 35 countries.
This increase is due to an increase in interest rates on our cash balances and investments portfolio.
This increase was due to an increase in interest rates on our cash balances and investments portfolio.
This was partially offset by $4.8 million in proceeds from the employee stock purchase plan ("ESPP") and $5.7 million in proceeds from stock option exercises by our employees and directors.
This was partially offset by $4.8 million in proceeds from the ESPP and $5.7 million in proceeds from stock option exercises by our employees and directors.
However, our cost of revenue may fluctuate as a percentage of our revenue from period to period due to the timing and extent of these expenses.
However, our general and administrative expenses may fluctuate as a percentage of our revenue from period to period due to the timing and extent of these expenses.
We calculate Net Retention Rate by dividing the revenue from the current period month by the revenue in the prior period month. For the last month of the years ended December 31, 2022 and 2021 our NRR was 110.7% and 106.6%, respectively.
We calculate Net Retention Rate by dividing the revenue from the current period month by the revenue in the prior period month. For the last month of the years ended December 31, 2023 and 2022 our NRR was 110.1% and 110.7%, respectively.
During the year ended December 31, 2022and 2021, no amounts were drawn down on the Credit Agreement. 77 Convertible Senior Notes In March 2021, we issued approximately $948.8 million aggregate principal amount of 0% convertible senior unsecured notes due in 2026 (the "Notes") in a private placement to qualified institutional buyers pursuant to Rule144A under the Securities Act.
During the year ended December 31, 2023 and 2022, no amounts were drawn down on the Credit Agreement. 83 Convertible Senior Notes In March 2021, we issued $948.8 million aggregate principal amount of 0% convertible senior unsecured notes due in 2026 (the “Notes”) in a private placement to qualified institutional buyers pursuant to Rule144A under the Securities Act.
And because big ideas often start small, we love it when developers experiment and iterate on our platform, coming up with exciting new ways to solve today’s complex problems. For the years ended December 31, 2022 and 2021, our revenue was $432.7 million and $354.3 million, respectively, an increase of 22%.
And because big ideas often start small, we love it when developers experiment and iterate on our platform, coming up with exciting new ways to solve today’s complex problems. For the years ended December 31, 2023 and 2022, our revenue was $506.0 million and $432.7 million, respectively, an increase of 17%.
For the trailing 12 months ended December 31, 2022 and 2021 our DBNER was 122.7% and 120.9%, respectively. DBNER may fluctuate from quarter to quarter based on, among other things, the timing associated with new customer accounts.
For the trailing 12 months ended December 31, 2023 and 2022 our DBNER was 119.0% and 122.7%, respectively. DBNER may fluctuate from quarter to quarter based on, among other things, the timing associated with new customer accounts.
The expected volatility was a blended volatility rate which incorporated both our observed equity volatility and the relevant guideline company volatility.
The expected volatility was a blended volatility rate which incorporated both our observed equity volatility and our relevant guideline companies’ volatilities.
For a discussion of the year ended December 31, 2021 compared to the year ended December 31, 2020, please refer to Part II, Item 7, "Management's Discussion and Analysis of Financial Condition and Results of Operations" in our Annual Report on Form 10-K for the year ended December 31, 2021.
For a discussion of the year ended December 31, 2022 compared to the year ended December 31, 2021, please refer to Part II, Item 7, “Management’s Discussion and Analysis of Financial Condition and Results of Operations” in our Annual Report on Form 10-K for the year ended December 31, 2022.
We calculate DBNER by dividing the revenue for a given period from customers who remained customers as of the last day of the given period ("current period") by the revenue from the same customers for the same period measured one year prior ("base period").
We calculate DBNER by dividing the revenue for a given period from customers who remained customers as of the last day of the given period (“current period”) by the revenue from the same customers for the same period measured one year prior (“base period”).
As of December 31, 2021, our edge network spanned across 51 markets and 31 countries that are outside of the United States. Our international expansion, including our global sales efforts, continues to add increased complexity and cost to our business.
As of both December 31, 2023 and 2022, our edge network spanned across 58 markets and 34 countries that are outside of the United States. Our international expansion, including our global sales efforts, continues to add increased complexity and cost to our business.
These teams work with technical and business leaders to help our customers’ end-users receive the best possible digital experience, while also lowering our customers’ total cost of ownership. These direct selling efforts are reflected by our 493 enterprise customers as of December 31, 2022.
These teams work with technical and business leaders to help our customers’ end-users receive the best possible digital experience, while also lowering our customers’ total cost of ownership. These direct selling efforts are reflected by the revenue generated from our enterprise customers.
This requires us to expand our sales and marketing capabilities outside of the United States, as well as increase the number of markets we have a presence in around the world to support our customers. Managing the administrative aspects of a global organization places a strain on our business and culture.
This requires us to expand our sales and marketing capabilities outside of the United States, increase the number of markets we have a presence in around the world to support our customers, and manage the administrative aspects of a global organization, each of which place a strain on our business and culture.
Other Income and Expenses Our interest income consists primarily of interest earned on our cash, cash equivalents and investments. Our interest expense consists primarily of the interest expense on our finance leases and amortization of discount and debt issuance costs associated with our debt obligations.
Other Income and Expenses Our interest income consists primarily of interest earned on our cash, cash equivalents and investments. Our interest expense consists primarily of the interest expense on our finance leases and amortization of discount and debt issuance costs associated with our debt obligations. Our other income (expense), net, consists primarily of foreign currency transaction gains and losses.
As of December 31, 2022, we were in compliance with the covenant and we expect to continue to be in compliance for at least the next 12 months.
As of December 31, 2023, we were in compliance with these covenants and we expect to continue to be in compliance for at least the next 12 months.
This service represents the convergence of the Content Delivery Network ("CDN") with functionality that has been traditionally delivered by hardware-centric appliances such as Application Delivery Controllers ("ADC"), Web Application Firewalls ("WAF"), Bot Detection, Distributed Denial of Service ("DDoS") and observability solutions.
This service represents the convergence of the Content Delivery Network (“CDN”) with functionality that has been traditionally delivered by hardware-centric appliances such as Application Delivery Controllers (“ADC”), Web Application Firewalls (“WAF”), Bot Detection, Distributed Denial of Service (“DDoS”) and observability solutions.
We calculate the Compound Annual Growth Rate (“CAGR”), which represents the rate of revenue return of our revenue cohorts, over a five year history from when they were first customers. 65 Summary of Revenue Generated by Customer Cohorts Over Time (in millions): Our 2018 Cohort increased its revenue 3.1 times in fiscal 2019 and has grown at approximately a 60% CAGR over the next four years from fiscal 2019 to fiscal 2022.
We calculate the Compound Annual Growth Rate (“CAGR”), which represents the rate of revenue return of our revenue cohorts, over a five year history from when they were first customers. 69 Summary of Revenue Generated by Customer Cohorts Over Time (in millions): Our 2019 Cohort increased its revenue 5.5 times in fiscal 2021 and has grown at approximately a 88% CAGR over the next four years from fiscal 2020 to fiscal 2023.
Our DBNER increases when customers increase their usage of our platform or purchase additional products, and declines when they reduce their usage, benefit from lower pricing on their existing usage, or curtail their purchases of additional products.
We track our growth, in part, by measuring DBNER. Our DBNER increases when customers increase their usage of our platform or purchase additional products, and declines when they reduce their usage, benefit from lower pricing on their existing usage, or curtail their purchases of additional products.
Our gross margin has been and will continue to be affected by a number of factors, including utilization of our network, the timing of our investments in the expansion of our network, which can increase depreciation and colocation costs in advance of expected demand, our ability to manage our network service providers and cloud infrastructure-related fees, the timing of amortization of capitalized software development costs, changes in personnel costs to provide customer support and operate the network, and customer pricing.
However, our cost of revenue may fluctuate as a percentage of our revenue from period to period due to the timing and extent of these expenses. 76 Our gross margin has been and will continue to be affected by a number of factors, including utilization of our network, the timing of our investments in the expansion of our network, which can increase depreciation and colocation costs in advance of expected demand, our ability to manage our network service providers and cloud infrastructure-related fees, the timing of amortization of capitalized software development costs, changes in personnel costs to provide customer support and operate the network, and customer pricing.
Our Dollar-Based Net Expansion Rate ("DBNER"), Net Retention Rate ("NRR") and Last-Twelve Months Net Retention Rate ("LTM NRR") metrics measure the revenue growth from existing customers attributable to increased usage of our platform and features, and purchase of additional products and services. For additional details on our key metrics, refer to the "Key Business Metrics" section.
Our Dollar-Based Net Expansion Rate (“DBNER”), Net Retention Rate (“NRR”) and Last-Twelve Months Net Retention Rate (“LTM NRR”) metrics also measure the revenue growth from existing customers attributable to increased usage of our platform and features, and purchase of additional products and services. For additional details on our key metrics, refer to the “Key Business Metrics” section.
The Credit Agreement bears interest at a rate per annum equal to the sum of LIBOR for the applicable interest period plus 1.75% to 2.00%, depending on the average daily outstanding balance of all loans and letters of credit under the Credit Agreement. Interest payments on outstanding borrowings are due on the last day of each interest period.
The Credit Agreement originally bore interest at a rate per annum equal to the sum of LIBOR for the applicable interest period plus 1.75% to 2.00%, depending on the average daily outstanding balance of all loans and letters of credit under the Credit Agreement.
If the Russia-Ukraine conflict continues or worsens, leading to greater global economic disruptions and uncertainty, our business 67 and results of operations could be materially impacted. Our customers in Russia represented an immaterial portion of our net assets and total consolidated revenue as of December 31, 2022 and 2021.
If either conflict continues or worsens, leading to greater global economic disruptions and uncertainty, our business and results of operations could be materially impacted. Our customers operating in Russia, Ukraine, and Israel represented an immaterial portion of our consolidated revenue as of December 31, 2023 and 2022, respectively.
This was offset by $232.0 million of maturities and sales of marketable securities. Cash Flows from Financing Activities For the year ended December 31, 2022, cash used in financing activities was $189.1 million, primarily consisting of $177.1 million used for the partial repurchase of our convertible debt and $22.5 million of finance lease liabilities repayments.
For the year ended December 31, 2022, cash used in financing activities was $189.1 million, primarily consisting of $177.1 million used for the partial repurchase of our convertible debt and $22.5 million of finance lease liabilities repayments.
We expect that these expenses will decline in future years as we continue to implement our sales tax collection mechanisms and start collecting these taxes from our customers.
Historically, we have not collected such taxes from our customers and have therefore recorded such taxes as general and administrative expenses. We expect that these expenses will decline in future years as we continue to implement our sales tax collection mechanisms and start collecting these taxes from our customers.
The Company continues to maintain a full valuation allowance and the tax expense for the periods were primarily due to foreign tax expense. Liquidity and Capital Resources As of December 31, 2022, we had cash, cash equivalents, and marketable securities and restricted cash totaling $683.1 million.
The Company continues to maintain a full valuation allowance in the U.S. and the tax expense (benefit) for the periods were primarily due to foreign tax expense. 82 Liquidity and Capital Resources As of December 31, 2023, we had cash, cash equivalents, and marketable securities totaling $328.8 million.
Affiliated customers that are business units of a single company in the streaming entertainment space generated an aggregate of 11% of our revenue in both the trailing 12 months ended December 31, 2022 and 2021. We incurred a net loss of $190.8 million and $222.7 million in the years ended December 31, 2022 and 2021, respectively.
Affiliated customers that are business units of a single company in the streaming entertainment space generated an aggregate of 12% and 11% of the Company ’ s revenue for the years ended December 31, 2023 and 2022, respectively. We incurred a net loss of $133.1 million and $190.8 million in the years ended December 31, 2023 and 2022, respectively.
Sales and marketing expenses also include expenditures related to advertising, marketing, our brand awareness activities, bandwidth and co-location costs for free trial users, costs related to our customer conferences, including our Altitude conference, professional services fees and amortization of our intangible assets, and an allocation of our general overhead expenses. 71 We focus our sales and marketing efforts on generating awareness of our platform and products, creating sales leads, and establishing and promoting our brand, both domestically and internationally.
Sales and marketing expenses also include expenditures related to advertising, marketing, our brand awareness activities, bandwidth and co-location costs for free trial users, costs related to our customer conferences, including our Altitude conference, professional services fees, amortization of our intangible assets, and an allocation of our general overhead expenses.
Cash Flows The following table summarizes our cash flows for the period indicated: Year ended December 31, 2022 2021 2020 (in thousands) Cash used in operating activities $ (69,632) $ (38,482) $ (19,916) Cash provided by (used in) investing activities 235,751 (794,511) (275,023) Cash provided by (used in) financing activities (189,149) 936,551 272,739 Cash Flows from Operating Activities For the year ended December 31, 2022, cash used in operating activities consisted primarily of our net loss of $190.8 million, adjusted for non-cash items of $207.3 million, and net cash flows used in operating assets and liabilities of $86.2 million.
Cash Flows The following table summarizes our cash flows for the period indicated: Year ended December 31, 2023 2022 2021 (in thousands) Net cash (used in) provided by operating activities $ 362 $ (69,632) $ (38,482) Net cash (used in) provided by investing activities 294,940 235,751 (794,511) Net cash (used in) provided by financing activities (331,380) (189,149) 936,551 Cash Flows from Operating Activities For the year ended December 31, 2023, cash provided by operating activities consisted primarily of our net loss of $133.1 million, adjusted for non-cash items of $203.3 million, and net cash flows used in operating assets and liabilities of $69.9 million.
Cash Flows from Investing Activities For the year ended December 31, 2022, cash provided by investing activities was $235.8 million, primarily consisting of $697.0 million of maturities and sales of marketable securities.
Cash Flows from Investing Activities For the year ended December 31, 2023, cash provided by investing activities was $294.9 million, primarily consisting of $459.4 million of maturities and sales of marketable securities.
There was also a $8.9 million increase in personnel related costs due to an increase in headcount and equity awards granted to employees supporting the growth of our business. There was also a one-time charge of $2.0 million related to cancellation of a commitment.
There was also a $1.3 million increase in personnel-related costs due to an increase in headcount and equity awards granted to employees supporting the growth of our business.
International Expansion We intend to continue expanding our efforts to attract customers outside of the United States by augmenting our sales teams and strategically increasing our presence in the number of markets in select international locations. As of December 31, 2022, our edge network spanned across 58 markets and 34 countries that are outside of the United States.
International Expansion We intend to continue expanding our efforts to attract customers outside of the United States by augmenting our sales teams and strategically increasing our presence in the number of markets in select international locations.
Our platform includes a variety of offerings across Network Services, Security, Compute and Observability product lines. As our customers mature, we assist them in expanding their use of our platform, including the use of additional offerings beyond edge cloud delivery or security.
Customers often begin with smaller deployments of one of our products and then expand their usage over time. Our platform includes a variety of offerings across Network Services, Security, Compute and Observability product lines. As our customers mature, we assist them in expanding their use of our platform, including the use of additional offerings beyond content delivery or security.
By focusing on performance and security, we have the opportunity to continue to add customers from a diverse set of industries. We emphasize retaining our customers and expanding their usage of our platform and adoption of our other products. Customers often begin with smaller deployments of one of our products and then expand their usage over time.
By focusing on our key differentiators, including performance and security, we have an opportunity to continue to add customers from a diverse set of industries. We emphasize retaining our customers and expanding their usage of our platform and adoption of our other products.
Other Income and Expense Interest Income Year ended December 31, Change 2022 2021 $ Change % Change (in thousands) Interest income $ 7,044 $ 1,282 $ 5,762 449 % Interest income was $7.0 million for the year ended December 31, 2022 compared to $1.3 million for the year ended December 31, 2021, an increase of $5.8 million, or 449%.
Other Income and Expense Interest income Year ended December 31, Change 2023 2022 $ Change % Change (in thousands) Interest income $ 18,186 $ 7,044 $ 11,142 158 % Interest income was $18.2 million for the year ended December 31, 2023 compared to $7.0 million for the year ended December 31, 2022, an increase of $11.1 million, or 158%.
We also had $18.3 million of operating lease payments. This was partially offset by an increase of $22.0 million in accounts payable, accrued expenses, and other liabilities due to timing of payments.
We also had $26.4 million of operating lease payments. This was partially offset by increases of $4.3 million in accrued expenses and $8.9 million in other liabilities due to timing of payments.
As used herein, "Fastly," "we," "our," "the Company" and similar terms include Fastly, Inc. and its subsidiaries, unless the context indicates otherwise. Overview Organizations around the world are more dependent on the quality of digital experiences they provide than ever before. At Fastly, we deliver an edge cloud platform capable of delivering fast, safe, and engaging digital experiences.
As used herein, “Fastly, ” “we, ” “our, ” “the Company ” and similar terms include Fastly, Inc. and its subsidiaries, unless the context indicates otherwise. Overview Organizations around the world are more dependent on the quality of digital experiences they provide than ever before.
Gross margin was 48% for the year ended December 31, 2022 compared to 53% for the year ended December 31, 2021, a decrease of 4%.
Gross margin was 53% for the year ended December 31, 2023 compared to 48% for the year ended December 31, 2022, an increase of 5%.
We expect our DBNER for individual cohorts to decrease once customers in that cohort have used our platform for more than two years and become a larger portion of both our overall customer base and the revenue that we use to calculate DBNER.
We expect our DBNER for individual cohorts to decrease once customers in that cohort have used our platform for more than two years and become a larger portion of both our overall customer base and the revenue that we use to calculate DBNER. 75 Net Retention Rate (“NRR”) and Last-Twelve Months Net Retention Rate (“LTM NRR”) Our ability to generate and increase our revenue is also dependent upon our ability to retain our existing customers.
Senior Secured Credit Facilities Agreement On February 16, 2021, we entered into a Senior Secured Credit Facilities Agreement ("Credit Agreement") with Silicon Valley Bank for an aggregate commitment amount of $100.0 million, with a maturity date of February 16, 2024.
Senior Secured Credit Facilities Agreement On February 16, 2021, we entered into a Senior Secured Credit Facilities Agreement (“Credit Agreement”) with the lenders from time to time party thereto (the “Lenders”) and Silicon Valley Bank, as a lender and as administrative agent and collateral agent for the Lenders for an aggregate commitment amount of $100.0 million, with a maturity date of February 16, 2024.
Cost of Revenue Year ended December 31, Change 2022 2021 $ Change % Change (in thousands) Cost of revenue $ 222,944 $ 167,002 $ 55,942 33 % Cost of revenue was $222.9 million for the year ended December 31, 2022 compared to $167.0 million for the year ended December 31, 2021, an increase of $55.9 million, or 33%.
Cost of Revenue Year ended December 31, Change 2023 2022 $ Change % Change (in thousands) Cost of revenue $ 239,660 $ 222,944 $ 16,716 7 % Cost of revenue was $239.7 million for the year ended December 31, 2023 compared to $222.9 million for the year ended December 31, 2022, an increase of $16.7 million, or 7%.
International revenue was $116.6 million and 27% of revenue for the year ended December 31, 2022, and $93.9 million and 27% of revenue for the year ended December 31, 2021. This represents an increase of $22.6 million, or 24%.
International revenue was $135.6 million and 27% of revenue for the year ended December 31, 2023, compared to $116.6 million and 27% of revenue for the year ended December 31, 2022. This represents an increase of $19.0 million, or 16%.
By comparing this amount to actual revenue for the period, we are able to assess our ability to replace terminated revenue by generating revenue from new and continuing customers. Our annual revenue retention rate for both of the years ended December 31, 2022 and 2021 was 99.2%.
By comparing this amount to actual revenue for the period, we are able to assess our ability to replace terminated revenue by generating revenue from new and continuing customers.
Net Retention Rate ("NRR") and Last-Twelve Months Net Retention Rate ("LTM NRR") Our ability to generate and increase our revenue is also dependent upon our ability to retain our existing customers. In addition to measuring expansion using DBNER, NRR and LTM NRR also allow us to track customer retention which demonstrates the stickiness of our edge cloud platform.
In addition to measuring expansion using DBNER, NRR and LTM NRR also allow us to track customer retention which demonstrates the stickiness of our edge cloud platform.
At the conclusion of the measurement period, or final determination of the values of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are reflected in the consolidated statements of operations. Goodwill Impairment Goodwill represents the excess of the purchase price of an acquired business over the fair value of the net tangible and identifiable intangible assets acquired.
At the conclusion of the measurement period, or final determination of the values of assets acquired or liabilities assumed, whichever comes first, any subsequent adjustments are reflected in the consolidated statements of operations.
Other income(expense), net Year ended December 31, Change 2022 2021 $ Change % Change (in thousands) Other income (expense), net $ (29) $ 356 $ (385) (108) % Other expense, net was $0.0 million for the year ended December 31, 2022 compared to other income, net, of $0.4 million for the year ended December 31, 2021, a decrease of $0.4 million, or (108)%.
Other income (expense), net Year ended December 31, Change 2023 2022 $ Change % Change (in thousands) Other expense, net $ (1,832) $ (29) $ (1,803) 6,217 % Other expense, net was $1.8 million for the year ended December 31, 2023 compared to other expense, net, of less than $0.1 million for the year ended December 31, 2022, a decrease of $1.8 million, or 6217%.
The bandwidth we have contracted to purchase may become unavailable for a variety of reasons, including service outages, payment disputes, network providers going out of business, natural disasters, networks imposing traffic limits, or governments adopting regulations that impact network operations. 68 Key Business Metrics We use the following key metrics presented in the table below, to evaluate our business, measure our performance, identify trends affecting our business, prepare financial projections, and make strategic decisions.
The bandwidth we have contracted to purchase may become unavailable for a variety of reasons, including service outages, payment disputes, network providers 72 going out of business, natural disasters, networks imposing traffic limits, or governments adopting regulations that impact network operations.
Average enterprise customer spend is calculated by taking the sum of the trailing 12-month revenue contributed by enterprise customers existing as of December 31, 2022, and dividing that by the number of enterprise customers as of December 31, 2022.
Under the prior methodology, our average enterprise customer spend is calculated by taking the sum of the trailing 12-month revenue contributed by enterprise customers, as defined under our prior methodology as customers with revenue in excess of $100,000 over the trailing 12-month period, existing as of December 31, 2023, and dividing that by that same number 74 of enterprise customers as of December 31, 2023.
Our 10 largest customers generated an aggregate of 35% and 33% of our revenue in the trailing 12 months ended December 31, 2022 and 2021, respectively. Our 5 largest customers generated an aggregate of 26% and 22% of our revenue in the trailing 12 months ended December 31, 2022 and 2021, respectively.
Our 10 largest customers generated an aggregate of 37% and 35% of our revenue in the trailing 12 months ended December 31, 2023 and 2022, respectively. No customer accounted for more than 10% of revenue for the years ended December 31, 2023 and 2022.
This represents an increase of 154, or 5%, in customers and 48, or 11%, in enterprise customers from December 31, 2021. Approximately 94% of our revenue in the year ended December 31, 2022 was driven by usage on our platform, primarily from existing customers, as revenue from new customers contributed less than 10% of our revenue.
For the years ended December 31, 2023 and 2022, approximately 95% and 94% of our revenue was driven by usage on our platform, respectively. Revenue was primarily from existing customers, as revenue from new customers contributed less than 10% of our revenue.
U.S. revenue was $316.1 million and 73% of revenue for the year ended December 31, 2022, and $260.4 million and 73% of revenue for the year ended December 31, 2021. This represents an increase of $55.8 million, or 21%.
This represents an increase of 181, or 6% in customers and 45, or 8%, in enterprise customers from December 31, 2022. U.S. revenue was $370.4 million and 73% of revenue for the year ended December 31, 2023, and $316.1 million and 73% of revenue for the year ended December 31, 2022. This represents an increase of $54.3 million, or 17%.
Our definition of a customer consists of identifiable operating entities with which we have a billing relationship in good standing, from which we recognized revenue during the period.
Total Customer Count We believe that our total number of customers is an important indicator of the adoption of our platform. Our definition of a customer consists of identifiable operating entities with which we have a billing relationship in good standing and which we have recognized revenue from.
As of December 31, 2022, our average enterprise customer spend was $782 thousand, as compared to $704 thousand as of December 31, 2021. The continued retention and growth of our enterprise customer spend is key to our long-term growth strategy.
The continued retention and growth of our enterprise customer spend is key to our long-term growth strategy.
The increase in cost of revenue is a result of an increase in bandwidth costs of $17.4 million, colocation costs of $8.5 million, hosting services of $4.9 million and other network costs of $2.0 million. Depreciation and amortization expense increased by $10.8 million as a result of increased investments in our platform.
The increase in cost of revenue is a result of an increase in bandwidth costs of $10.1 million, $7.9 million increase in depreciation expense as a result of increased investments in our platform as well as an increase in repair and maintenance cost of $1.2 million.
To test for goodwill impairment, we compare the carrying value of our reporting unit with its fair value. If the carrying value of the goodwill is considered impaired, a loss is measured as the excess of the reporting unit’s carrying value over the fair value.
If the carrying value of the goodwill is considered impaired, a loss is measured as the excess of the reporting unit’s carrying value over the fair value. As of December 31, 2023, we believe the estimated fair value of our one single reporting unit has substantially exceeded its carrying value.
We had 2,074 domestic customers and 884 international customers as of December 31, 2022, and 2,111 domestic customers and 691 international customer as of December 31, 2021. There was a decrease in domestic customers of 37, or 2%, and an increase in international customers of 193, or 28%, compared to December 31, 2021.
Under the prior methodology, we had 2,028 domestic customers and 1,069 international customers as of December 31, 2023, and 2,074 domestic customers and 884 international customers as of December 31, 2022. There was a decrease in domestic customers of 46, or 2%, and an increase in international customers of 185, or 21%, compared to December 31, 2022.