<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e280b-34ad-7471-9414-8b374ac38f8b,g:bb5ff7e3-b935-4952-b9a7-0a37de7f3a49-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain"/>
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:type="simple" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member"/>
  <link:roleRef roleURI="http://fastly.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="simple" xlink:href="fsly-20260630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETS"/>
  <link:definitionLink xlink:role="http://fastly.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETS" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e280b-3578-7550-bc4b-6b37a02004cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e280b-3578-7ddf-b1cc-fe96bcea4e44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-7550-bc4b-6b37a02004cb" xlink:to="loc_us-gaap_StatementTable_019e280b-3578-7ddf-b1cc-fe96bcea4e44" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7d7f-ae89-d0046e085ed5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e280b-3578-7ddf-b1cc-fe96bcea4e44" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7d7f-ae89-d0046e085ed5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7d7f-ae89-d0046e085ed5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7d7f-ae89-d0046e085ed5" xlink:to="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7d7f-ae89-d0046e085ed5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7914-9fbb-ce9b3c010bc5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7d7f-ae89-d0046e085ed5" xlink:to="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7914-9fbb-ce9b3c010bc5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019e280b-3578-7a3c-a46d-0e523ff1db2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7914-9fbb-ce9b3c010bc5" xlink:to="loc_us-gaap_CommonClassAMember_019e280b-3578-7a3c-a46d-0e523ff1db2b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019e280b-3578-723a-be46-99679e5e026f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7914-9fbb-ce9b3c010bc5" xlink:to="loc_us-gaap_CommonClassBMember_019e280b-3578-723a-be46-99679e5e026f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-7550-bc4b-6b37a02004cb" xlink:to="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e280b-3578-7944-9aa7-794863d72e8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e280b-3578-7944-9aa7-794863d72e8e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecuritiesCurrent_019e280b-3578-7d11-9515-19e177ab022d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MarketableSecuritiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:to="loc_us-gaap_MarketableSecuritiesCurrent_019e280b-3578-7d11-9515-19e177ab022d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019e280b-3578-71f8-81e7-d66dd39af60c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019e280b-3578-71f8-81e7-d66dd39af60c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019e280b-3578-72af-80c1-f1887123e590" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019e280b-3578-72af-80c1-f1887123e590" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019e280b-3578-7022-b99a-51b5876385ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019e280b-3578-7526-8f4a-daba02f438cc" xlink:to="loc_us-gaap_AssetsCurrent_019e280b-3578-7022-b99a-51b5876385ed" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019e280b-3578-7999-987d-dc54d48e3937" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019e280b-3578-7999-987d-dc54d48e3937" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019e280b-3578-72c1-95eb-4d42debd12b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019e280b-3578-72c1-95eb-4d42debd12b7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019e280b-3578-7472-9ef7-a316e641603d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_Goodwill_019e280b-3578-7472-9ef7-a316e641603d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019e280b-3578-7652-86d1-9065a4e5d743" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019e280b-3578-7652-86d1-9065a4e5d743" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019e280b-3578-7b3a-a327-84fa315e07ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019e280b-3578-7b3a-a327-84fa315e07ca" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e280b-3578-77ae-af78-79b65982c414" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019e280b-3578-759d-be2f-35d522f39eb4" xlink:to="loc_us-gaap_Assets_019e280b-3578-77ae-af78-79b65982c414" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-7550-bc4b-6b37a02004cb" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019e280b-3578-7b60-b8a2-be2b95646e42" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_AccountsPayableCurrent_019e280b-3578-7b60-b8a2-be2b95646e42" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019e280b-3578-7718-b3f9-dbcd4d2aae67" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_019e280b-3578-7718-b3f9-dbcd4d2aae67" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019e280b-3578-7b51-8889-57800a0fb8f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_LongTermDebtCurrent_019e280b-3578-7b51-8889-57800a0fb8f9" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e280b-3578-7c97-b716-01faf2eb59fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019e280b-3578-7c97-b716-01faf2eb59fe" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019e280b-3578-7b06-8c0c-566906ed4c09" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019e280b-3578-7b06-8c0c-566906ed4c09" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_019e280b-3578-7ae9-bb1d-a02062042326" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_019e280b-3578-7ae9-bb1d-a02062042326" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019e280b-3578-7523-81d3-555628957912" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019e280b-3578-712b-8ea9-aca8df68637b" xlink:to="loc_us-gaap_LiabilitiesCurrent_019e280b-3578-7523-81d3-555628957912" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019e280b-3578-7b61-b5c3-ebcc3a34c4b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019e280b-3578-7b61-b5c3-ebcc3a34c4b2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e280b-3578-7048-9284-4a0d8d47fc2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019e280b-3578-7048-9284-4a0d8d47fc2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019e280b-3578-7ae6-a8f5-51a9b997fde4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019e280b-3578-7ae6-a8f5-51a9b997fde4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e280b-3578-71e6-9b29-4a78bbeab7df" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_Liabilities_019e280b-3578-71e6-9b29-4a78bbeab7df" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019e280b-3578-7462-8b15-126bccaa89ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019e280b-3578-7462-8b15-126bccaa89ef" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e280b-3578-7a28-88a2-19098b96fd93" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:to="loc_us-gaap_CommonStockValue_019e280b-3578-7a28-88a2-19098b96fd93" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019e280b-3578-7769-acae-fe4675885fe1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019e280b-3578-7769-acae-fe4675885fe1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e280b-3578-7466-91f5-2bc7c5e983dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e280b-3578-7466-91f5-2bc7c5e983dd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e280b-3578-7448-b79b-98f4fb5067c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e280b-3578-7448-b79b-98f4fb5067c9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e280b-3578-79fb-89e3-bac7449992ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019e280b-3578-71e6-bbc3-e7c2c364b19c" xlink:to="loc_us-gaap_StockholdersEquity_019e280b-3578-79fb-89e3-bac7449992ae" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e280b-3578-7ab3-9488-09e75a6294cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019e280b-3578-759f-a227-cda47565aac5" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e280b-3578-7ab3-9488-09e75a6294cb" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="fsly-20260630.xsd#CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical"/>
  <link:definitionLink xlink:role="http://fastly.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e280b-3578-760f-9c91-b72375c7baee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:to="loc_us-gaap_StatementTable_019e280b-3578-760f-9c91-b72375c7baee" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7532-90a5-7bf005641812" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e280b-3578-760f-9c91-b72375c7baee" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7532-90a5-7bf005641812" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7532-90a5-7bf005641812_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7532-90a5-7bf005641812" xlink:to="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7532-90a5-7bf005641812_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7c6a-ac9a-ccc4901b50fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019e280b-3578-7532-90a5-7bf005641812" xlink:to="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7c6a-ac9a-ccc4901b50fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019e280b-3578-7195-a431-1e07ab79727f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7c6a-ac9a-ccc4901b50fe" xlink:to="loc_us-gaap_CommonClassAMember_019e280b-3578-7195-a431-1e07ab79727f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019e280b-3578-76bd-b462-2485ec5b0c90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019e280b-3578-7c6a-ac9a-ccc4901b50fe" xlink:to="loc_us-gaap_CommonClassBMember_019e280b-3578-76bd-b462-2485ec5b0c90" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019e280b-3578-78c5-8fe5-3520abd9f4f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019e280b-3578-78c5-8fe5-3520abd9f4f0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_019e280b-3578-7e64-ac9c-9e55a96df03d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_019e280b-3578-7e64-ac9c-9e55a96df03d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_019e280b-3578-7223-8edc-d62875e68650" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_019e280b-3578-7223-8edc-d62875e68650" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019e280b-3578-7be0-9c93-3fc7938ab5ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:to="loc_us-gaap_CommonStockSharesIssued_019e280b-3578-7be0-9c93-3fc7938ab5ec" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3578-749a-984e-f4d4af64965e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3578-76d7-8c2b-cab2e41767a3" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3578-749a-984e-f4d4af64965e" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="fsly-20260630.xsd#CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY"/>
  <link:definitionLink xlink:role="http://fastly.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementLineItems_019e280b-3653-7075-92b1-5461cc7e1379" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019e280b-3653-7b61-b016-4cc3c77570a0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3653-7075-92b1-5461cc7e1379" xlink:to="loc_us-gaap_StatementTable_019e280b-3653-7b61-b016-4cc3c77570a0" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019e280b-3653-7a23-9e67-2fe7537d717f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019e280b-3653-7b61-b016-4cc3c77570a0" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019e280b-3653-7a23-9e67-2fe7537d717f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e280b-3653-7a23-9e67-2fe7537d717f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e280b-3653-7a23-9e67-2fe7537d717f" xlink:to="loc_us-gaap_EquityComponentDomain_019e280b-3653-7a23-9e67-2fe7537d717f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019e280b-3653-7f5d-942d-90f1c86c9099" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019e280b-3653-7a23-9e67-2fe7537d717f" xlink:to="loc_us-gaap_EquityComponentDomain_019e280b-3653-7f5d-942d-90f1c86c9099" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019e280b-3653-7074-8443-aeceaf207c0a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e280b-3653-7f5d-942d-90f1c86c9099" xlink:to="loc_us-gaap_CommonStockMember_019e280b-3653-7074-8443-aeceaf207c0a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019e280b-3653-7bb0-b7aa-b99b8ec0a166" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e280b-3653-7f5d-942d-90f1c86c9099" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019e280b-3653-7bb0-b7aa-b99b8ec0a166" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e280b-3653-7647-8187-3996c0ca2e0f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e280b-3653-7f5d-942d-90f1c86c9099" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019e280b-3653-7647-8187-3996c0ca2e0f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019e280b-3653-7cdf-9cee-ed45d95d0ecc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019e280b-3653-7f5d-942d-90f1c86c9099" xlink:to="loc_us-gaap_RetainedEarningsMember_019e280b-3653-7cdf-9cee-ed45d95d0ecc" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019e280b-3653-7075-92b1-5461cc7e1379" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3653-748a-adb4-b43483877db7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3653-748a-adb4-b43483877db7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e280b-3653-72ce-9e76-558b664fd430" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_StockholdersEquity_019e280b-3653-72ce-9e76-558b664fd430" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e280b-3653-7ae3-95ea-de5df5f9703f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019e280b-3653-7ae3-95ea-de5df5f9703f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019e280b-3653-7a35-b504-1843b525ad30" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019e280b-3653-7a35-b504-1843b525ad30" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_019e280b-3653-7b68-a07a-5bafc0114f96" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_019e280b-3653-7b68-a07a-5bafc0114f96" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019e280b-3653-7b8e-ac15-75118a17abfd" xlink:href="fsly-20260630.xsd#fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019e280b-3653-7b8e-ac15-75118a17abfd" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019e280b-3653-7438-b520-b15456bd1999" xlink:href="fsly-20260630.xsd#fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019e280b-3653-7438-b520-b15456bd1999" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019e865c-572a-7420-98a4-be98aa77e2ff" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019e865c-572a-7420-98a4-be98aa77e2ff" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_019e865c-572a-721c-a64b-5bd647d1d5ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueEmployeeStockPurchasePlan_019e865c-572a-721c-a64b-5bd647d1d5ed" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019e280b-3653-79fa-9e8c-dd437661ad0b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019e280b-3653-79fa-9e8c-dd437661ad0b" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e280b-3653-72c0-bc9d-d4478516a304" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_NetIncomeLoss_019e280b-3653-72c0-bc9d-d4478516a304" xlink:type="arc" order="11"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019e280b-3653-72b7-b07c-274db34f6d99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019e280b-3653-786f-94ff-96d00f7920fd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019e280b-3653-72b7-b07c-274db34f6d99" xlink:type="arc" order="12"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3653-7e06-81dc-a706977d4130" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e280b-3653-7827-8074-86bb8ca3b52b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#SummaryofSignificantAccountingPoliciesDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskLineItems_019e280b-3653-77dc-9128-7a389188ec43" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e280b-3653-77dc-9128-7a389188ec43" xlink:to="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7a7b-84f3-db352c2f28c2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7a7b-84f3-db352c2f28c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7a7b-84f3-db352c2f28c2_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7a7b-84f3-db352c2f28c2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7a7b-84f3-db352c2f28c2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-719e-916a-7d88158a9335" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7a7b-84f3-db352c2f28c2" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-719e-916a-7d88158a9335" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ServersMember_019e280b-3653-7c99-bc36-e84f4f256164" xlink:href="fsly-20260630.xsd#fsly_ServersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-719e-916a-7d88158a9335" xlink:to="loc_fsly_ServersMember_019e280b-3653-7c99-bc36-e84f4f256164" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019e280b-3653-7c8b-9d16-a3d5270b8730" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:to="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019e280b-3653-7c8b-9d16-a3d5270b8730" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019e280b-3653-7c8b-9d16-a3d5270b8730_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019e280b-3653-7c8b-9d16-a3d5270b8730" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019e280b-3653-7c8b-9d16-a3d5270b8730_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019e280b-3653-78be-b590-39bf7211d259" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019e280b-3653-7c8b-9d16-a3d5270b8730" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019e280b-3653-78be-b590-39bf7211d259" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceLifeMember_019e280b-3653-788e-bc5a-2b24a9844e70" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ServiceLifeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019e280b-3653-78be-b590-39bf7211d259" xlink:to="loc_us-gaap_ServiceLifeMember_019e280b-3653-788e-bc5a-2b24a9844e70" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MajorCustomersAxis_019f9495-08ba-7007-92dd-9a50ab9f9d45" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MajorCustomersAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:to="loc_srt_MajorCustomersAxis_019f9495-08ba-7007-92dd-9a50ab9f9d45" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019f9495-08ba-7007-92dd-9a50ab9f9d45_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_MajorCustomersAxis_019f9495-08ba-7007-92dd-9a50ab9f9d45" xlink:to="loc_srt_NameOfMajorCustomerDomain_019f9495-08ba-7007-92dd-9a50ab9f9d45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_NameOfMajorCustomerDomain_019f9495-08ba-7a7e-a120-e8bdb566ac48" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_NameOfMajorCustomerDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_MajorCustomersAxis_019f9495-08ba-7007-92dd-9a50ab9f9d45" xlink:to="loc_srt_NameOfMajorCustomerDomain_019f9495-08ba-7a7e-a120-e8bdb566ac48" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_OneCustomerMember_019f9495-2228-717a-9033-78664f941a12" xlink:href="fsly-20260630.xsd#fsly_OneCustomerMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_NameOfMajorCustomerDomain_019f9495-08ba-7a7e-a120-e8bdb566ac48" xlink:to="loc_fsly_OneCustomerMember_019f9495-2228-717a-9033-78664f941a12" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f9495-4570-7af3-81bf-a05903f5e4ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f9495-4570-7af3-81bf-a05903f5e4ad" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f9495-4570-7af3-81bf-a05903f5e4ad_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f9495-4570-7af3-81bf-a05903f5e4ad" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f9495-4570-7af3-81bf-a05903f5e4ad_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f9495-4570-78ef-b3fe-4bf2d9297986" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f9495-4570-7af3-81bf-a05903f5e4ad" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f9495-4570-78ef-b3fe-4bf2d9297986" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableMember_019f9495-639a-7a2b-a51e-245ebe3b3048" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccountsReceivableMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f9495-4570-78ef-b3fe-4bf2d9297986" xlink:to="loc_us-gaap_AccountsReceivableMember_019f9495-639a-7a2b-a51e-245ebe3b3048" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_019f9496-9b57-7e09-9b15-a5056b08a39f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f9495-4570-78ef-b3fe-4bf2d9297986" xlink:to="loc_us-gaap_SalesRevenueNetMember_019f9496-9b57-7e09-9b15-a5056b08a39f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_019f9495-84c5-7544-9d3a-fae08608a4c0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019e280b-3653-795e-ab37-ec92c9f649a8" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_019f9495-84c5-7544-9d3a-fae08608a4c0" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019f9495-84c5-7544-9d3a-fae08608a4c0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019f9495-84c5-7544-9d3a-fae08608a4c0" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019f9495-84c5-7544-9d3a-fae08608a4c0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019f9495-84c5-72f5-a566-da207b6e5fd3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019f9495-84c5-7544-9d3a-fae08608a4c0" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019f9495-84c5-72f5-a566-da207b6e5fd3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_019f9495-a396-7f69-882f-5c89146d1589" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_019f9495-84c5-72f5-a566-da207b6e5fd3" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_019f9495-a396-7f69-882f-5c89146d1589" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019e280b-3653-754d-86f9-37baf9edad49" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e280b-3653-77dc-9128-7a389188ec43" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019e280b-3653-754d-86f9-37baf9edad49" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e280b-3653-7d87-8fd7-6207495a72b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e280b-3653-77dc-9128-7a389188ec43" xlink:to="loc_us-gaap_NetIncomeLoss_019e280b-3653-7d87-8fd7-6207495a72b4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019e280b-3653-7c19-a26e-98a5f141342f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e280b-3653-77dc-9128-7a389188ec43" xlink:to="loc_us-gaap_Depreciation_019e280b-3653-7c19-a26e-98a5f141342f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_019f9494-be63-7e47-bd1b-89a0571634de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019e280b-3653-77dc-9128-7a389188ec43" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_019f9494-be63-7e47-bd1b-89a0571634de" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#RevenueNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/RevenueNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019f949b-ad59-74cc-bb34-9ca8ff55c8b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019f949b-ad59-7ee3-9ca7-1f9f02cb8c6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f949b-ad59-74cc-bb34-9ca8ff55c8b6" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019f949b-ad59-7ee3-9ca7-1f9f02cb8c6c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019f949b-ad59-7722-8fb7-43a24bd75f78" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f949b-ad59-7ee3-9ca7-1f9f02cb8c6c" xlink:to="loc_srt_StatementGeographicalAxis_019f949b-ad59-7722-8fb7-43a24bd75f78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019f949b-ad59-7722-8fb7-43a24bd75f78_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019f949b-ad59-7722-8fb7-43a24bd75f78" xlink:to="loc_srt_SegmentGeographicalDomain_019f949b-ad59-7722-8fb7-43a24bd75f78_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019f949b-ad59-754e-b37c-41d9a543a9eb" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019f949b-ad59-7722-8fb7-43a24bd75f78" xlink:to="loc_srt_SegmentGeographicalDomain_019f949b-ad59-754e-b37c-41d9a543a9eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_019f949b-d9ab-749e-b615-e9ae5b75357b" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019f949b-ad59-754e-b37c-41d9a543a9eb" xlink:to="loc_country_US_019f949b-d9ab-749e-b615-e9ae5b75357b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f949b-ea86-747d-b974-7808e7599f04" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByBenchmarkAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f949b-ad59-7ee3-9ca7-1f9f02cb8c6c" xlink:to="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f949b-ea86-747d-b974-7808e7599f04" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f949b-ea86-747d-b974-7808e7599f04_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f949b-ea86-747d-b974-7808e7599f04" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f949b-ea86-747d-b974-7808e7599f04_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f949b-ea86-7181-9bc4-09533ac9901e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskBenchmarkDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByBenchmarkAxis_019f949b-ea86-747d-b974-7808e7599f04" xlink:to="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f949b-ea86-7181-9bc4-09533ac9901e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SalesRevenueNetMember_019f949b-ea86-7c87-aa89-aaf75fa29b26" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SalesRevenueNetMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskBenchmarkDomain_019f949b-ea86-7181-9bc4-09533ac9901e" xlink:to="loc_us-gaap_SalesRevenueNetMember_019f949b-ea86-7c87-aa89-aaf75fa29b26" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskByTypeAxis_019f949b-ea86-73dd-8809-62f6aa010257" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019f949b-ad59-7ee3-9ca7-1f9f02cb8c6c" xlink:to="loc_us-gaap_ConcentrationRiskByTypeAxis_019f949b-ea86-73dd-8809-62f6aa010257" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019f949b-ea86-73dd-8809-62f6aa010257_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019f949b-ea86-73dd-8809-62f6aa010257" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019f949b-ea86-73dd-8809-62f6aa010257_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTypeDomain_019f949b-ea86-7383-a342-9bce4a84e2f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ConcentrationRiskByTypeAxis_019f949b-ea86-73dd-8809-62f6aa010257" xlink:to="loc_us-gaap_ConcentrationRiskTypeDomain_019f949b-ea86-7383-a342-9bce4a84e2f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerConcentrationRiskMember_019f949b-ea86-75da-b77b-0d60b82c35e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerConcentrationRiskMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskTypeDomain_019f949b-ea86-7383-a342-9bce4a84e2f4" xlink:to="loc_us-gaap_CustomerConcentrationRiskMember_019f949b-ea86-75da-b77b-0d60b82c35e3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskPercentage1_019f949b-ad59-76e4-a80c-d75f1a21b7c4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConcentrationRiskPercentage1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f949b-ad59-74cc-bb34-9ca8ff55c8b6" xlink:to="loc_us-gaap_ConcentrationRiskPercentage1_019f949b-ad59-76e4-a80c-d75f1a21b7c4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_NumberOfProductLines_019e280b-3653-77b2-b2b1-e260177b5ca2" xlink:href="fsly-20260630.xsd#fsly_NumberOfProductLines"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019f949b-ad59-74cc-bb34-9ca8ff55c8b6" xlink:to="loc_fsly_NumberOfProductLines_019e280b-3653-77b2-b2b1-e260177b5ca2" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueScheduleofNetRevenuebyGeographicRegionDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#RevenueScheduleofNetRevenuebyGeographicRegionDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/RevenueScheduleofNetRevenuebyGeographicRegionDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019e280b-3653-70da-b0dc-6e1fbbf97f85" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019e280b-3653-71e1-8466-05553a5f3cda" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019e280b-3653-70da-b0dc-6e1fbbf97f85" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019e280b-3653-71e1-8466-05553a5f3cda" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e280b-3653-7039-b6ae-9d5aa198882b" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019e280b-3653-71e1-8466-05553a5f3cda" xlink:to="loc_srt_StatementGeographicalAxis_019e280b-3653-7039-b6ae-9d5aa198882b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e280b-3653-7039-b6ae-9d5aa198882b_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e280b-3653-7039-b6ae-9d5aa198882b" xlink:to="loc_srt_SegmentGeographicalDomain_019e280b-3653-7039-b6ae-9d5aa198882b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e280b-3653-795f-9a2f-fb489926f39d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e280b-3653-7039-b6ae-9d5aa198882b" xlink:to="loc_srt_SegmentGeographicalDomain_019e280b-3653-795f-9a2f-fb489926f39d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_019e280b-3653-7f9e-9010-b8a16b436999" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e280b-3653-795f-9a2f-fb489926f39d" xlink:to="loc_country_US_019e280b-3653-7f9e-9010-b8a16b436999" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_019e280b-3653-7b70-a13e-05f5377b8327" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e280b-3653-795f-9a2f-fb489926f39d" xlink:to="loc_us-gaap_NonUsMember_019e280b-3653-7b70-a13e-05f5377b8327" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019e280b-3653-7666-9851-5a60d6f1417c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019e280b-3653-70da-b0dc-6e1fbbf97f85" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019e280b-3653-7666-9851-5a60d6f1417c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueScheduleofRevenuebyProductLineDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#RevenueScheduleofRevenuebyProductLineDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/RevenueScheduleofRevenuebyProductLineDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueLineItems_019e280b-3653-7ded-a273-6b7a67008c3d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019e280b-3653-70ef-bcfa-f285db7e9e4c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019e280b-3653-7ded-a273-6b7a67008c3d" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019e280b-3653-70ef-bcfa-f285db7e9e4c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019e280b-3653-7083-973f-7c27a43678e9" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019e280b-3653-70ef-bcfa-f285db7e9e4c" xlink:to="loc_srt_ProductOrServiceAxis_019e280b-3653-7083-973f-7c27a43678e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019e280b-3653-7083-973f-7c27a43678e9_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019e280b-3653-7083-973f-7c27a43678e9" xlink:to="loc_srt_ProductsAndServicesDomain_019e280b-3653-7083-973f-7c27a43678e9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019e280b-3653-7cf7-a5f4-da272cadc3fb" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019e280b-3653-7083-973f-7c27a43678e9" xlink:to="loc_srt_ProductsAndServicesDomain_019e280b-3653-7cf7-a5f4-da272cadc3fb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_NetworkServicesMember_019e280b-3653-7b8a-9c42-80ebf7c60559" xlink:href="fsly-20260630.xsd#fsly_NetworkServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019e280b-3653-7cf7-a5f4-da272cadc3fb" xlink:to="loc_fsly_NetworkServicesMember_019e280b-3653-7b8a-9c42-80ebf7c60559" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SecurityMember_019e280b-3653-7014-a401-1af135e49abb" xlink:href="fsly-20260630.xsd#fsly_SecurityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019e280b-3653-7cf7-a5f4-da272cadc3fb" xlink:to="loc_fsly_SecurityMember_019e280b-3653-7014-a401-1af135e49abb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_OtherMember_019e280b-3653-7151-82c4-ae394767b793" xlink:href="fsly-20260630.xsd#fsly_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019e280b-3653-7cf7-a5f4-da272cadc3fb" xlink:to="loc_fsly_OtherMember_019e280b-3653-7151-82c4-ae394767b793" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019e280b-3653-7c81-b57c-fac61bbe2c0e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019e280b-3653-7ded-a273-6b7a67008c3d" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019e280b-3653-7c81-b57c-fac61bbe2c0e" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueRemainingPerformanceObligationNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#RevenueRemainingPerformanceObligationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/RevenueRemainingPerformanceObligationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e280b-3653-72aa-98b2-01d558fa1bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e280b-3653-72aa-98b2-01d558fa1bdd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019e280b-3653-798d-9414-d1f08518230f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e280b-3653-72aa-98b2-01d558fa1bdd" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019e280b-3653-798d-9414-d1f08518230f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019e280b-3653-7ae1-b925-ff1021806f44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019e280b-3653-7ae1-b925-ff1021806f44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019e280b-3653-761d-acf5-4f5ff5c2dfcb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019e280b-3653-761d-acf5-4f5ff5c2dfcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e280b-3653-7912-b6cc-db03120b12ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e280b-3653-7912-b6cc-db03120b12ae" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueRemainingPerformanceObligationNarrativeDetails_1" xlink:type="simple" xlink:href="fsly-20260630.xsd#RevenueRemainingPerformanceObligationNarrativeDetails_1"/>
  <link:definitionLink xlink:role="http://fastly.com/role/RevenueRemainingPerformanceObligationNarrativeDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e280b-3653-72aa-98b2-01d558fa1bdd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019e280b-3653-72aa-98b2-01d558fa1bdd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019e280b-3653-7ae1-b925-ff1021806f44" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019e280b-3653-7ae1-b925-ff1021806f44" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019e280b-3653-761d-acf5-4f5ff5c2dfcb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019e280b-3653-761d-acf5-4f5ff5c2dfcb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e280b-3653-7912-b6cc-db03120b12ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019e280b-3653-7327-90a0-7e4fa2518c1d" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019e280b-3653-7912-b6cc-db03120b12ae" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/InvestmentsandFairValueMeasurementsDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#InvestmentsandFairValueMeasurementsDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/InvestmentsandFairValueMeasurementsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-780b-bd82-0034c87b4e8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-780b-bd82-0034c87b4e8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_019e280b-3653-76c4-8297-0fc99be2eb6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:to="loc_us-gaap_MoneyMarketFundsMember_019e280b-3653-76c4-8297-0fc99be2eb6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashMember_019e280b-3653-7ff2-afb1-6c64c75b2221" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:to="loc_us-gaap_CashMember_019e280b-3653-7ff2-afb1-6c64c75b2221" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a4a-8072-52d4df9675c6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a4a-8072-52d4df9675c6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019e280b-3653-7335-802e-2ab79450185b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019e280b-3653-7335-802e-2ab79450185b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019e280b-3653-743f-ad6c-c03db4036fef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019e280b-3653-743f-ad6c-c03db4036fef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-70a3-bfad-77fbac345f2b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-70a3-bfad-77fbac345f2b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019e280b-3653-788b-ab91-2219e365a465" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019e280b-3653-788b-ab91-2219e365a465" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e280b-3653-7c20-9418-6c6c8b9a98a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e280b-3653-7c20-9418-6c6c8b9a98a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019e280b-3653-760b-8610-ca18b903e787" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_CommercialPaperMember_019e280b-3653-760b-8610-ca18b903e787" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_019e280b-3653-7f4f-9a5b-893245f068b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_MunicipalBondsMember_019e280b-3653-7f4f-9a5b-893245f068b0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019e280b-3653-76c2-aec2-3b03aa327bbc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019e280b-3653-76c2-aec2-3b03aa327bbc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_019e280b-3653-7032-9508-f63a49fe83db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfFinancialPositionLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_StatementOfFinancialPositionLocationBalanceAxis_019e280b-3653-7032-9508-f63a49fe83db" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e280b-3653-7993-a338-595a17c4d297" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e280b-3653-7993-a338-595a17c4d297" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e280b-3653-7d58-93c3-30a1ae1333bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e280b-3653-7d58-93c3-30a1ae1333bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e280b-3653-7fb8-a056-aa900c55c001" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e280b-3653-7fb8-a056-aa900c55c001" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e280b-3653-7774-ab02-9bf60b28566a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e280b-3653-7774-ab02-9bf60b28566a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e280b-3653-7d55-b7ec-f1d7ed584637" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e280b-3653-7d55-b7ec-f1d7ed584637" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e280b-3653-72b9-b08a-844a10f0b601" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e280b-3653-72b9-b08a-844a10f0b601" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost_019e280b-3653-7e9b-b30f-3eb2409eb016" xlink:href="fsly-20260630.xsd#fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost_019e280b-3653-7e9b-b30f-3eb2409eb016" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue_019e280b-3653-725e-a670-1816da746b80" xlink:href="fsly-20260630.xsd#fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue_019e280b-3653-725e-a670-1816da746b80" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/InvestmentsandFairValueMeasurementsDetails_1" xlink:type="simple" xlink:href="fsly-20260630.xsd#InvestmentsandFairValueMeasurementsDetails_1"/>
  <link:definitionLink xlink:role="http://fastly.com/role/InvestmentsandFairValueMeasurementsDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-780b-bd82-0034c87b4e8f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-780b-bd82-0034c87b4e8f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019e280b-3653-780b-bd82-0034c87b4e8f" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_019e280b-3653-76c4-8297-0fc99be2eb6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:to="loc_us-gaap_MoneyMarketFundsMember_019e280b-3653-76c4-8297-0fc99be2eb6c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashMember_019e280b-3653-7ff2-afb1-6c64c75b2221" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019e280b-3653-740c-94f5-00e2050899ce" xlink:to="loc_us-gaap_CashMember_019e280b-3653-7ff2-afb1-6c64c75b2221" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a4a-8072-52d4df9675c6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a4a-8072-52d4df9675c6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019e280b-3653-7a4a-8072-52d4df9675c6" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019e280b-3653-7335-802e-2ab79450185b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019e280b-3653-7335-802e-2ab79450185b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019e280b-3653-743f-ad6c-c03db4036fef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019e280b-3653-7a74-9437-b89377ee3ec0" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019e280b-3653-743f-ad6c-c03db4036fef" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019e280b-3653-7939-a1ce-fd1e696f3965" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-70a3-bfad-77fbac345f2b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-70a3-bfad-77fbac345f2b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019e280b-3653-70a3-bfad-77fbac345f2b" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019e280b-3653-788b-ab91-2219e365a465" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019e280b-3653-788b-ab91-2219e365a465" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019e280b-3653-7c20-9418-6c6c8b9a98a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019e280b-3653-7c20-9418-6c6c8b9a98a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019e280b-3653-760b-8610-ca18b903e787" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_CommercialPaperMember_019e280b-3653-760b-8610-ca18b903e787" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_019e280b-3653-7f4f-9a5b-893245f068b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_MunicipalBondsMember_019e280b-3653-7f4f-9a5b-893245f068b0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019e280b-3653-76c2-aec2-3b03aa327bbc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019e280b-3653-7c9b-89b2-f48f443d7eb4" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019e280b-3653-76c2-aec2-3b03aa327bbc" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e280b-3653-7993-a338-595a17c4d297" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e280b-3653-7993-a338-595a17c4d297" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e280b-3653-7d58-93c3-30a1ae1333bc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e280b-3653-7d58-93c3-30a1ae1333bc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e280b-3653-7fb8-a056-aa900c55c001" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019e280b-3653-7fb8-a056-aa900c55c001" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e280b-3653-7774-ab02-9bf60b28566a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e280b-3653-7774-ab02-9bf60b28566a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e280b-3653-7d55-b7ec-f1d7ed584637" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e280b-3653-7d55-b7ec-f1d7ed584637" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e280b-3653-72b9-b08a-844a10f0b601" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019e280b-3653-7cbb-a653-7cd4dd586908" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019e280b-3653-72b9-b08a-844a10f0b601" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost_019e280b-3653-7e9b-b30f-3eb2409eb016" xlink:href="fsly-20260630.xsd#fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost_019e280b-3653-7e9b-b30f-3eb2409eb016" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue_019e280b-3653-725e-a670-1816da746b80" xlink:href="fsly-20260630.xsd#fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019e280b-3653-7cb8-8745-ca008957b2ec" xlink:to="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue_019e280b-3653-725e-a670-1816da746b80" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/BalanceSheetInformationScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#BalanceSheetInformationScheduleofPropertyandEquipmentNetDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/BalanceSheetInformationScheduleofPropertyandEquipmentNetDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7595-a9c4-9213601c994a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019e280b-3653-78f4-ab58-7c96ed7223dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7595-a9c4-9213601c994a" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019e280b-3653-78f4-ab58-7c96ed7223dc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-770e-970f-b8ac83853dea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019e280b-3653-78f4-ab58-7c96ed7223dc" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-770e-970f-b8ac83853dea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-770e-970f-b8ac83853dea_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-770e-970f-b8ac83853dea" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-770e-970f-b8ac83853dea_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-770e-970f-b8ac83853dea" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_019e280b-3653-7124-b1bd-27c2de8e5b31" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:to="loc_us-gaap_ComputerEquipmentMember_019e280b-3653-7124-b1bd-27c2de8e5b31" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_019e280b-3653-7995-a113-58d0626cde21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_019e280b-3653-7995-a113-58d0626cde21" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_019e280b-3653-7165-b11d-d89dfa33ded5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_019e280b-3653-7165-b11d-d89dfa33ded5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OfficeEquipmentMember_019e280b-3653-73ee-ad2e-f39d80ac6ca5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OfficeEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:to="loc_us-gaap_OfficeEquipmentMember_019e280b-3653-73ee-ad2e-f39d80ac6ca5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_019e280b-3653-7d05-852d-782e603bf31a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-751e-944d-886a429fbb77" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_019e280b-3653-7d05-852d-782e603bf31a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_019e280b-3653-7a7d-ba7a-f249c84d4840" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7595-a9c4-9213601c994a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_019e280b-3653-7a7d-ba7a-f249c84d4840" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_019e280b-3653-74a3-966f-56a5be263e39" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7595-a9c4-9213601c994a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_019e280b-3653-74a3-966f-56a5be263e39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019e280b-3653-75d8-8036-55a246026548" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7595-a9c4-9213601c994a" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019e280b-3653-75d8-8036-55a246026548" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/BalanceSheetInformationNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#BalanceSheetInformationNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/BalanceSheetInformationNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7fd5-a449-3138653bebb0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019e280b-3653-7622-a296-dac20bdb1e52" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7fd5-a449-3138653bebb0" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019e280b-3653-7622-a296-dac20bdb1e52" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7ff4-a136-e1cd27342042" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019e280b-3653-7622-a296-dac20bdb1e52" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7ff4-a136-e1cd27342042" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7ff4-a136-e1cd27342042_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7ff4-a136-e1cd27342042" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7ff4-a136-e1cd27342042_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7672-b032-72eeec20c605" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019e280b-3653-7ff4-a136-e1cd27342042" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7672-b032-72eeec20c605" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_019e280b-3653-70da-9e2b-c299bb02cbf8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019e280b-3653-7672-b032-72eeec20c605" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_019e280b-3653-70da-9e2b-c299bb02cbf8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019e280b-3653-720a-9590-45d72a5b9ec5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7fd5-a449-3138653bebb0" xlink:to="loc_us-gaap_Depreciation_019e280b-3653-720a-9590-45d72a5b9ec5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_019e280b-3653-7f3c-930c-869fa502d5d6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019e280b-3653-7fd5-a449-3138653bebb0" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_019e280b-3653-7f3c-930c-869fa502d5d6" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/LeasesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#LeasesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/LeasesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e280b-3653-7a56-9a87-190e2312e7ae" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_019e280b-3653-7abe-a0db-1a28466efce7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e280b-3653-7a56-9a87-190e2312e7ae" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_019e280b-3653-7abe-a0db-1a28466efce7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e280b-3653-7bad-a2b0-9e7d8cfd7a7d" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_019e280b-3653-7abe-a0db-1a28466efce7" xlink:to="loc_srt_RangeAxis_019e280b-3653-7bad-a2b0-9e7d8cfd7a7d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e280b-3653-7bad-a2b0-9e7d8cfd7a7d_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e280b-3653-7bad-a2b0-9e7d8cfd7a7d" xlink:to="loc_srt_RangeMember_019e280b-3653-7bad-a2b0-9e7d8cfd7a7d_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e280b-3653-7857-8af3-e62b5f535af0" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e280b-3653-7bad-a2b0-9e7d8cfd7a7d" xlink:to="loc_srt_RangeMember_019e280b-3653-7857-8af3-e62b5f535af0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e280b-3653-75ee-ad5e-75b576b7bd1c" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e280b-3653-7857-8af3-e62b5f535af0" xlink:to="loc_srt_MinimumMember_019e280b-3653-75ee-ad5e-75b576b7bd1c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e280b-3653-76e7-a94c-091d17351153" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e280b-3653-7857-8af3-e62b5f535af0" xlink:to="loc_srt_MaximumMember_019e280b-3653-76e7-a94c-091d17351153" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_019e280b-3653-7c1c-b476-31a3419929ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e280b-3653-7a56-9a87-190e2312e7ae" xlink:to="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_019e280b-3653-7c1c-b476-31a3419929ea" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SubleasesRemainingLeaseTerm_019e280b-3653-7b23-9b6d-35a47fe776f1" xlink:href="fsly-20260630.xsd#fsly_SubleasesRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e280b-3653-7a56-9a87-190e2312e7ae" xlink:to="loc_fsly_SubleasesRemainingLeaseTerm_019e280b-3653-7b23-9b6d-35a47fe776f1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019e280b-3653-7887-ba47-dc72a15ef064" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e280b-3653-7a56-9a87-190e2312e7ae" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019e280b-3653-7887-ba47-dc72a15ef064" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_019e280b-3653-79c2-b419-68070fc5af27" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019e280b-3653-7a56-9a87-190e2312e7ae" xlink:to="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_019e280b-3653-79c2-b419-68070fc5af27" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/GoodwillandIntangibleAssetsScheduleofIntangibleAssetsDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#GoodwillandIntangibleAssetsScheduleofIntangibleAssetsDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/GoodwillandIntangibleAssetsScheduleofIntangibleAssetsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e280b-3654-72b2-aef0-e46bcf1bac22" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e280b-3654-7da4-b39e-43b53e31e0ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e280b-3654-72b2-aef0-e46bcf1bac22" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e280b-3654-7da4-b39e-43b53e31e0ed" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e280b-3654-7bce-b247-34b60660d2dd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019e280b-3654-7da4-b39e-43b53e31e0ed" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e280b-3654-7bce-b247-34b60660d2dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7bce-b247-34b60660d2dd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e280b-3654-7bce-b247-34b60660d2dd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7bce-b247-34b60660d2dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7595-ba66-e2ab3f055753" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019e280b-3654-7bce-b247-34b60660d2dd" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7595-ba66-e2ab3f055753" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_019e280b-3654-7afb-af79-435ea7c2b0d3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7595-ba66-e2ab3f055753" xlink:to="loc_us-gaap_CustomerRelationshipsMember_019e280b-3654-7afb-af79-435ea7c2b0d3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_019e280b-3654-7103-b92b-8e1d6c4d3fd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7595-ba66-e2ab3f055753" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_019e280b-3654-7103-b92b-8e1d6c4d3fd6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_019e280b-3654-75e1-a35c-42f10c4cb698" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7595-ba66-e2ab3f055753" xlink:to="loc_us-gaap_TradeNamesMember_019e280b-3654-75e1-a35c-42f10c4cb698" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_InternetProtocolAddressesMember_019e280b-3654-708f-8224-37dd6333136e" xlink:href="fsly-20260630.xsd#fsly_InternetProtocolAddressesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019e280b-3654-7595-ba66-e2ab3f055753" xlink:to="loc_fsly_InternetProtocolAddressesMember_019e280b-3654-708f-8224-37dd6333136e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019e280b-3654-7fd7-a094-2b5f2ae80f62" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e280b-3654-72b2-aef0-e46bcf1bac22" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019e280b-3654-7fd7-a094-2b5f2ae80f62" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019e280b-3654-750d-964a-b9e0c70bae75" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e280b-3654-72b2-aef0-e46bcf1bac22" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019e280b-3654-750d-964a-b9e0c70bae75" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019e280b-3654-7bd2-80e2-25941f43e400" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019e280b-3654-72b2-aef0-e46bcf1bac22" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019e280b-3654-7bd2-80e2-25941f43e400" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsSeniorSecuredCreditFacilitiesCreditAgreementNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsSeniorSecuredCreditFacilitiesCreditAgreementNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsSeniorSecuredCreditFacilitiesCreditAgreementNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-75a1-90a8-6cb53f9f20c8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-75a1-90a8-6cb53f9f20c8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-753d-8b03-68ccc82cfa9e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-75a1-90a8-6cb53f9f20c8" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-753d-8b03-68ccc82cfa9e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-753d-8b03-68ccc82cfa9e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-753d-8b03-68ccc82cfa9e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-753d-8b03-68ccc82cfa9e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-76b5-be10-368c6988e793" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-753d-8b03-68ccc82cfa9e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-76b5-be10-368c6988e793" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SeniorSecuredCreditFacilitiesAgreementMember_019e280b-3654-799c-869f-8c1304e614fb" xlink:href="fsly-20260630.xsd#fsly_SeniorSecuredCreditFacilitiesAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-76b5-be10-368c6988e793" xlink:to="loc_fsly_SeniorSecuredCreditFacilitiesAgreementMember_019e280b-3654-799c-869f-8c1304e614fb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e280b-3654-7ec7-9bac-2e6b8d49d434" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-75a1-90a8-6cb53f9f20c8" xlink:to="loc_srt_RangeAxis_019e280b-3654-7ec7-9bac-2e6b8d49d434" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e280b-3654-7ec7-9bac-2e6b8d49d434_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e280b-3654-7ec7-9bac-2e6b8d49d434" xlink:to="loc_srt_RangeMember_019e280b-3654-7ec7-9bac-2e6b8d49d434_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e280b-3654-7af1-8012-292038b0e5fe" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e280b-3654-7ec7-9bac-2e6b8d49d434" xlink:to="loc_srt_RangeMember_019e280b-3654-7af1-8012-292038b0e5fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e280b-3654-79c5-996a-9ae9bd04d7a3" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e280b-3654-7af1-8012-292038b0e5fe" xlink:to="loc_srt_MinimumMember_019e280b-3654-79c5-996a-9ae9bd04d7a3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e280b-3654-7bad-b624-7949d7577f09" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e280b-3654-7af1-8012-292038b0e5fe" xlink:to="loc_srt_MaximumMember_019e280b-3654-7bad-b624-7949d7577f09" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_019e280b-3654-73d8-bd81-a48cfb94b159" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-75a1-90a8-6cb53f9f20c8" xlink:to="loc_us-gaap_VariableRateAxis_019e280b-3654-73d8-bd81-a48cfb94b159" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019e280b-3654-73d8-bd81-a48cfb94b159_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_019e280b-3654-73d8-bd81-a48cfb94b159" xlink:to="loc_us-gaap_VariableRateDomain_019e280b-3654-73d8-bd81-a48cfb94b159_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019e280b-3654-7b4a-8237-ff4456a6607d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_019e280b-3654-73d8-bd81-a48cfb94b159" xlink:to="loc_us-gaap_VariableRateDomain_019e280b-3654-7b4a-8237-ff4456a6607d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_019e280b-3654-7104-8202-1d1e1980861c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019e280b-3654-7b4a-8237-ff4456a6607d" xlink:to="loc_us-gaap_BaseRateMember_019e280b-3654-7104-8202-1d1e1980861c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_019e280b-3654-76db-bc44-efe4804d815c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019e280b-3654-7b4a-8237-ff4456a6607d" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_019e280b-3654-76db-bc44-efe4804d815c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e280b-3654-70eb-9e80-ead9f50a0042" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019e280b-3654-70eb-9e80-ead9f50a0042" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentCovenantNetLiquidityThreshold_019e280b-3654-75bf-8d65-a5da464ce002" xlink:href="fsly-20260630.xsd#fsly_DebtInstrumentCovenantNetLiquidityThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_fsly_DebtInstrumentCovenantNetLiquidityThreshold_019e280b-3654-75bf-8d65-a5da464ce002" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentCovenantConvertibleDebtOutstandingThreshold_019e280b-3654-7db5-b894-71e4c7fed90e" xlink:href="fsly-20260630.xsd#fsly_DebtInstrumentCovenantConvertibleDebtOutstandingThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_fsly_DebtInstrumentCovenantConvertibleDebtOutstandingThreshold_019e280b-3654-7db5-b894-71e4c7fed90e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_019e280b-3654-7b01-8947-c9ad432a917d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_019e280b-3654-7b01-8947-c9ad432a917d" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019e280b-3654-71c3-9f5f-b2a6fad43079" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019e280b-3654-71c3-9f5f-b2a6fad43079" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_019e280b-3654-7a67-8dad-bddcf28eab94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_019e280b-3654-7a67-8dad-bddcf28eab94" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumRequirement_019e280b-3654-77cf-8809-829e4d3ad052" xlink:href="fsly-20260630.xsd#fsly_DebtCovenantAdjustedQuickRatioMinimumRequirement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumRequirement_019e280b-3654-77cf-8809-829e4d3ad052" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtCovenantSpringingRevenueGrowthQuarterlyBasisMinimum_019e280b-3654-772d-9f52-fdc208c74d79" xlink:href="fsly-20260630.xsd#fsly_DebtCovenantSpringingRevenueGrowthQuarterlyBasisMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_fsly_DebtCovenantSpringingRevenueGrowthQuarterlyBasisMinimum_019e280b-3654-772d-9f52-fdc208c74d79" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumThresholdToTriggerRevenueGrowthCovenantRequirement_019e280b-3654-7be1-a92f-c6e673b1f180" xlink:href="fsly-20260630.xsd#fsly_DebtCovenantAdjustedQuickRatioMinimumThresholdToTriggerRevenueGrowthCovenantRequirement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumThresholdToTriggerRevenueGrowthCovenantRequirement_019e280b-3654-7be1-a92f-c6e673b1f180" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_019e280b-3654-7ceb-869a-866a870b46dc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_019e280b-3654-7ceb-869a-866a870b46dc" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_019e280b-3654-72fb-b28b-882c27b97a25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7cfa-bbf2-1bb68f1b032c" xlink:to="loc_us-gaap_LineOfCredit_019e280b-3654-72fb-b28b-882c27b97a25" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsConvertibleSeniorNotesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsConvertibleSeniorNotesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsConvertibleSeniorNotesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7225-9811-979b837eaf7f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7225-9811-979b837eaf7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7dfc-b2dc-05a77326c9e0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7225-9811-979b837eaf7f" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7dfc-b2dc-05a77326c9e0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7dfc-b2dc-05a77326c9e0_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7dfc-b2dc-05a77326c9e0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7dfc-b2dc-05a77326c9e0_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7209-9c3c-082a65eb48ea" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7dfc-b2dc-05a77326c9e0" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7209-9c3c-082a65eb48ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-7a56-977a-1bce1969c7cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7209-9c3c-082a65eb48ea" xlink:to="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-7a56-977a-1bce1969c7cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7d50-a817-02ee170ad4ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7225-9811-979b837eaf7f" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7d50-a817-02ee170ad4ed" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d50-a817-02ee170ad4ed_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7d50-a817-02ee170ad4ed" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d50-a817-02ee170ad4ed_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d1a-8670-6d27a80f93a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7d50-a817-02ee170ad4ed" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d1a-8670-6d27a80f93a3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2026ConvertibleNotesMember_019e280b-3654-76e2-8880-e7e189cf6af8" xlink:href="fsly-20260630.xsd#fsly_A2026ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d1a-8670-6d27a80f93a3" xlink:to="loc_fsly_A2026ConvertibleNotesMember_019e280b-3654-76e2-8880-e7e189cf6af8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-70ad-807a-2d7d5a107e45" xlink:href="fsly-20260630.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d1a-8670-6d27a80f93a3" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-70ad-807a-2d7d5a107e45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7670-ae3f-1b847f674d7b" xlink:href="fsly-20260630.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7d1a-8670-6d27a80f93a3" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7670-ae3f-1b847f674d7b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019e280b-3654-7fc3-9b06-7f8fa868a7c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019e280b-3654-7fc3-9b06-7f8fa868a7c9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e280b-3654-7160-a739-c09a94e39be1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e280b-3654-7160-a739-c09a94e39be1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentFaceAmountAdditionalPrincipalIssuable_019e280b-3654-72fa-b465-0ed52979bee1" xlink:href="fsly-20260630.xsd#fsly_DebtInstrumentFaceAmountAdditionalPrincipalIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_fsly_DebtInstrumentFaceAmountAdditionalPrincipalIssuable_019e280b-3654-72fa-b465-0ed52979bee1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_019e280b-3654-77a6-875a-31890a7f0230" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_019e280b-3654-77a6-875a-31890a7f0230" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_019e280b-3654-7243-8201-f1f054da3b7d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentRepurchasedFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_019e280b-3654-7243-8201-f1f054da3b7d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchaseAmount_019e280b-3654-751c-ba52-d82e4d8b7725" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_DebtInstrumentRepurchaseAmount_019e280b-3654-751c-ba52-d82e4d8b7725" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentRepurchaseTransactionCosts_019e280b-3654-7069-898a-dcce8b931b5d" xlink:href="fsly-20260630.xsd#fsly_DebtInstrumentRepurchaseTransactionCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_fsly_DebtInstrumentRepurchaseTransactionCosts_019e280b-3654-7069-898a-dcce8b931b5d" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAmount_019e280b-3654-78e5-a1ec-97437a84e370" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ExtinguishmentOfDebtAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAmount_019e280b-3654-78e5-a1ec-97437a84e370" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019e280b-3654-714b-a26e-cfbd3b20b1a1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-768e-bdbd-caeda713f334" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019e280b-3654-714b-a26e-cfbd3b20b1a1" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsScheduleofConvertibleSeniorNotesDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsScheduleofConvertibleSeniorNotesDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsScheduleofConvertibleSeniorNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-77c2-9d4d-ae027874d1ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7998-b9c7-e107da982623" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-77c2-9d4d-ae027874d1ef" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7998-b9c7-e107da982623" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7759-bb6e-8384dae94b50" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7998-b9c7-e107da982623" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7759-bb6e-8384dae94b50" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7759-bb6e-8384dae94b50_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7759-bb6e-8384dae94b50" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7759-bb6e-8384dae94b50_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7653-87c0-9a5757ab7c8e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7759-bb6e-8384dae94b50" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7653-87c0-9a5757ab7c8e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-794c-8c79-2f083f4d046a" xlink:href="fsly-20260630.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7653-87c0-9a5757ab7c8e" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-794c-8c79-2f083f4d046a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7ba8-9531-c587adae2b51" xlink:href="fsly-20260630.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7653-87c0-9a5757ab7c8e" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7ba8-9531-c587adae2b51" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7af8-8ea1-939e2988296f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7998-b9c7-e107da982623" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7af8-8ea1-939e2988296f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7af8-8ea1-939e2988296f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7af8-8ea1-939e2988296f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7af8-8ea1-939e2988296f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-713d-9f26-dfd7dd76942a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7af8-8ea1-939e2988296f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-713d-9f26-dfd7dd76942a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-74de-9354-3cb1737975b4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-713d-9f26-dfd7dd76942a" xlink:to="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-74de-9354-3cb1737975b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019e280b-3654-7e66-b380-c4cff7a94129" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-77c2-9d4d-ae027874d1ef" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019e280b-3654-7e66-b380-c4cff7a94129" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e280b-3654-7745-bdac-67cae811c859" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-77c2-9d4d-ae027874d1ef" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019e280b-3654-7745-bdac-67cae811c859" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_019e280b-3654-78d9-80c6-d5b091ea6e83" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-77c2-9d4d-ae027874d1ef" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_019e280b-3654-78d9-80c6-d5b091ea6e83" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsCappedCallsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsCappedCallsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsCappedCallsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-78af-a422-fd421726fbc7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-79a6-bbaa-9e747790f0a2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-78af-a422-fd421726fbc7" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-79a6-bbaa-9e747790f0a2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-76d2-9a98-1f7f4f92c103" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-79a6-bbaa-9e747790f0a2" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-76d2-9a98-1f7f4f92c103" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-76d2-9a98-1f7f4f92c103_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-76d2-9a98-1f7f4f92c103" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-76d2-9a98-1f7f4f92c103_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7231-a548-5be5b7825eee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-76d2-9a98-1f7f4f92c103" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7231-a548-5be5b7825eee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-74a5-a279-3dd2aee2bea1" xlink:href="fsly-20260630.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7231-a548-5be5b7825eee" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-74a5-a279-3dd2aee2bea1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DerivativeInitialStrikePrice_019e280b-3654-71da-b05b-5230b61af650" xlink:href="fsly-20260630.xsd#fsly_DerivativeInitialStrikePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-78af-a422-fd421726fbc7" xlink:to="loc_fsly_DerivativeInitialStrikePrice_019e280b-3654-71da-b05b-5230b61af650" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DerivativeInitialCapPrice_019e280b-3654-74f5-8902-38a4889fef0a" xlink:href="fsly-20260630.xsd#fsly_DerivativeInitialCapPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-78af-a422-fd421726fbc7" xlink:to="loc_fsly_DerivativeInitialCapPrice_019e280b-3654-74f5-8902-38a4889fef0a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_AdjustmentsToAdditionalPaidInCapitalPurchasesOfCappedCalls_019e280b-3654-7a13-83e4-636a9ab3274f" xlink:href="fsly-20260630.xsd#fsly_AdjustmentsToAdditionalPaidInCapitalPurchasesOfCappedCalls"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-78af-a422-fd421726fbc7" xlink:to="loc_fsly_AdjustmentsToAdditionalPaidInCapitalPurchasesOfCappedCalls_019e280b-3654-7a13-83e4-636a9ab3274f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsRedemptionRightsoftheNotesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsRedemptionRightsoftheNotesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsRedemptionRightsoftheNotesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-70d3-8d45-49136021f79c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-70d3-8d45-49136021f79c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7862-a13e-b91632b76788" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-70d3-8d45-49136021f79c" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7862-a13e-b91632b76788" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7862-a13e-b91632b76788_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7862-a13e-b91632b76788" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7862-a13e-b91632b76788_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7fa0-a2bb-fe3b32985c36" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-7862-a13e-b91632b76788" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7fa0-a2bb-fe3b32985c36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7d9b-8d29-590761fe623a" xlink:href="fsly-20260630.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7fa0-a2bb-fe3b32985c36" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7d9b-8d29-590761fe623a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7499-99d1-368dd2b8883a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-70d3-8d45-49136021f79c" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7499-99d1-368dd2b8883a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7499-99d1-368dd2b8883a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7499-99d1-368dd2b8883a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7499-99d1-368dd2b8883a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7290-bbcb-eb1125c8267c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7499-99d1-368dd2b8883a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7290-bbcb-eb1125c8267c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-79d7-aae3-c61cab3c07a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7290-bbcb-eb1125c8267c" xlink:to="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-79d7-aae3-c61cab3c07a8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019e280b-3654-7712-bf59-e0a004fcf96a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019e280b-3654-7712-bf59-e0a004fcf96a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019e280b-3654-7c21-9e35-998209143d41" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019e280b-3654-7c21-9e35-998209143d41" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019e280b-3654-7f05-b8d1-abca7a7ce2a9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019e280b-3654-7f05-b8d1-abca7a7ce2a9" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentConvertiblePeriodOfNoticeRequired_019e280b-3654-7764-a69a-50524f4a1671" xlink:href="fsly-20260630.xsd#fsly_DebtInstrumentConvertiblePeriodOfNoticeRequired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:to="loc_fsly_DebtInstrumentConvertiblePeriodOfNoticeRequired_019e280b-3654-7764-a69a-50524f4a1671" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_019e280b-3654-74c3-abba-412f8fe34c5d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-770c-8324-070e40f11b08" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_019e280b-3654-74c3-abba-412f8fe34c5d" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsConversionRightsoftheNotesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsConversionRightsoftheNotesNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsConversionRightsoftheNotesNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7033-86a3-4130edc27399" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7f48-bb85-089daa7bf014" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7033-86a3-4130edc27399" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7f48-bb85-089daa7bf014" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019e280b-3654-700a-b654-8a8f56b02343" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtConversionByUniqueDescriptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7f48-bb85-089daa7bf014" xlink:to="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019e280b-3654-700a-b654-8a8f56b02343" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionNameDomain_019e280b-3654-700a-b654-8a8f56b02343_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtConversionNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019e280b-3654-700a-b654-8a8f56b02343" xlink:to="loc_us-gaap_DebtConversionNameDomain_019e280b-3654-700a-b654-8a8f56b02343_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionNameDomain_019e280b-3654-79cb-8c06-d3d72b9f4ef2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtConversionNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019e280b-3654-700a-b654-8a8f56b02343" xlink:to="loc_us-gaap_DebtConversionNameDomain_019e280b-3654-79cb-8c06-d3d72b9f4ef2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtConversionScenarioOneMember_019e280b-3654-7a6b-943d-b246ff1ba329" xlink:href="fsly-20260630.xsd#fsly_DebtConversionScenarioOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtConversionNameDomain_019e280b-3654-79cb-8c06-d3d72b9f4ef2" xlink:to="loc_fsly_DebtConversionScenarioOneMember_019e280b-3654-7a6b-943d-b246ff1ba329" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtConversionScenarioTwoMember_019e280b-3654-78e1-ac93-3c353d3f77e9" xlink:href="fsly-20260630.xsd#fsly_DebtConversionScenarioTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtConversionNameDomain_019e280b-3654-79cb-8c06-d3d72b9f4ef2" xlink:to="loc_fsly_DebtConversionScenarioTwoMember_019e280b-3654-78e1-ac93-3c353d3f77e9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-79dd-b693-4d20b9b12ad5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7f48-bb85-089daa7bf014" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-79dd-b693-4d20b9b12ad5" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-79dd-b693-4d20b9b12ad5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-79dd-b693-4d20b9b12ad5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-79dd-b693-4d20b9b12ad5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-781f-98f9-dd058b249f2c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-79dd-b693-4d20b9b12ad5" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-781f-98f9-dd058b249f2c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2026ConvertibleNotes2028ConvertibleNotesAnd2030ConvertibleNotesMember_019e280b-3654-73f2-a97c-80014d8c3114" xlink:href="fsly-20260630.xsd#fsly_A2026ConvertibleNotes2028ConvertibleNotesAnd2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-781f-98f9-dd058b249f2c" xlink:to="loc_fsly_A2026ConvertibleNotes2028ConvertibleNotesAnd2030ConvertibleNotesMember_019e280b-3654-73f2-a97c-80014d8c3114" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-77c5-89ca-45588e644872" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7f48-bb85-089daa7bf014" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-77c5-89ca-45588e644872" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-77c5-89ca-45588e644872_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-77c5-89ca-45588e644872" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-77c5-89ca-45588e644872_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-77ea-979c-b3976ad822b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-77c5-89ca-45588e644872" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-77ea-979c-b3976ad822b0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-7344-8be0-14fb478113fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-77ea-979c-b3976ad822b0" xlink:to="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-7344-8be0-14fb478113fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019e280b-3654-7247-8154-57f0d9ecaedf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7033-86a3-4130edc27399" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019e280b-3654-7247-8154-57f0d9ecaedf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019e280b-3654-726e-8199-2aac048a6d87" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7033-86a3-4130edc27399" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019e280b-3654-726e-8199-2aac048a6d87" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019e280b-3654-77ff-89dd-b0f302750e88" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7033-86a3-4130edc27399" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019e280b-3654-77ff-89dd-b0f302750e88" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsScheduleofConversionRightsofNotesDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsScheduleofConversionRightsofNotesDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsScheduleofConversionRightsofNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-734c-bdee-d8c466367daa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7dfa-99ac-9593849e33a3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-734c-bdee-d8c466367daa" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7dfa-99ac-9593849e33a3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-714b-8091-1b8c3d2c10b7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7dfa-99ac-9593849e33a3" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-714b-8091-1b8c3d2c10b7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-714b-8091-1b8c3d2c10b7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-714b-8091-1b8c3d2c10b7" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-714b-8091-1b8c3d2c10b7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7404-a243-7327a17e5383" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-714b-8091-1b8c3d2c10b7" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7404-a243-7327a17e5383" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-7b58-b8e8-3056b59fd940" xlink:href="fsly-20260630.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7404-a243-7327a17e5383" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-7b58-b8e8-3056b59fd940" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-76c9-a286-2d49c9cb0c0d" xlink:href="fsly-20260630.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7404-a243-7327a17e5383" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-76c9-a286-2d49c9cb0c0d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-75cf-bd9b-750242418d5f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7dfa-99ac-9593849e33a3" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-75cf-bd9b-750242418d5f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-75cf-bd9b-750242418d5f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-75cf-bd9b-750242418d5f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-75cf-bd9b-750242418d5f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7bf3-b1f3-e764cd651e62" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-75cf-bd9b-750242418d5f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7bf3-b1f3-e764cd651e62" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-78cb-a08b-7013f998a5f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7bf3-b1f3-e764cd651e62" xlink:to="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-78cb-a08b-7013f998a5f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_019e280b-3654-7e1f-a8db-9ce0197319cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-734c-bdee-d8c466367daa" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_019e280b-3654-7e1f-a8db-9ce0197319cf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_019e280b-3654-7942-955d-8671882511ef" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-734c-bdee-d8c466367daa" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_019e280b-3654-7942-955d-8671882511ef" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsScheduleofCarryingValueofNotesDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#DebtInstrumentsScheduleofCarryingValueofNotesDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/DebtInstrumentsScheduleofCarryingValueofNotesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7960-be9d-ebbf75ba6b7c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7a85-b0eb-410d06bf3a04" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7960-be9d-ebbf75ba6b7c" xlink:to="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7a85-b0eb-410d06bf3a04" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-711f-86d6-fd2e292367ee" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7a85-b0eb-410d06bf3a04" xlink:to="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-711f-86d6-fd2e292367ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-711f-86d6-fd2e292367ee_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-711f-86d6-fd2e292367ee" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-711f-86d6-fd2e292367ee_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7422-b752-a0d8cfe26ca3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019e280b-3654-711f-86d6-fd2e292367ee" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7422-b752-a0d8cfe26ca3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7d3a-a913-33165fb850c6" xlink:href="fsly-20260630.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7422-b752-a0d8cfe26ca3" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019e280b-3654-7d3a-a913-33165fb850c6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-7979-a0d8-47b3d1ee3a32" xlink:href="fsly-20260630.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7422-b752-a0d8cfe26ca3" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019e280b-3654-7979-a0d8-47b3d1ee3a32" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2026ConvertibleNotesMember_019e280b-3654-7e72-8fa6-338d35cfe44b" xlink:href="fsly-20260630.xsd#fsly_A2026ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019e280b-3654-7422-b752-a0d8cfe26ca3" xlink:to="loc_fsly_A2026ConvertibleNotesMember_019e280b-3654-7e72-8fa6-338d35cfe44b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7984-9c49-bff636519f2e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019e280b-3654-7a85-b0eb-410d06bf3a04" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7984-9c49-bff636519f2e" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7984-9c49-bff636519f2e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7984-9c49-bff636519f2e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-7984-9c49-bff636519f2e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-75f6-aa61-838e120d53cd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019e280b-3654-7984-9c49-bff636519f2e" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-75f6-aa61-838e120d53cd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-7f9c-9f12-f7a0d6b87118" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019e280b-3654-75f6-aa61-838e120d53cd" xlink:to="loc_us-gaap_ConvertibleDebtMember_019e280b-3654-7f9c-9f12-f7a0d6b87118" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019e280b-3654-7520-b390-a09244d84d94" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7960-be9d-ebbf75ba6b7c" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019e280b-3654-7520-b390-a09244d84d94" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_019f600a-d779-7ab3-bd05-66d79d9009cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7960-be9d-ebbf75ba6b7c" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_019f600a-d779-7ab3-bd05-66d79d9009cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e280b-3654-70bd-ac45-b2425e5fd942" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019e280b-3654-7960-be9d-ebbf75ba6b7c" xlink:to="loc_us-gaap_LongTermDebt_019e280b-3654-70bd-ac45-b2425e5fd942" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityEquityIncentivePlansNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityEquityIncentivePlansNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityEquityIncentivePlansNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7e0f-be46-a0a8b09a8f90" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7e0f-be46-a0a8b09a8f90" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_019e280b-3654-7254-850c-a712ef590737" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7e0f-be46-a0a8b09a8f90" xlink:to="loc_us-gaap_PlanNameAxis_019e280b-3654-7254-850c-a712ef590737" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019e280b-3654-7254-850c-a712ef590737_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_019e280b-3654-7254-850c-a712ef590737" xlink:to="loc_us-gaap_PlanNameDomain_019e280b-3654-7254-850c-a712ef590737_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019e280b-3654-7dff-9e92-296385b3def4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_019e280b-3654-7254-850c-a712ef590737" xlink:to="loc_us-gaap_PlanNameDomain_019e280b-3654-7dff-9e92-296385b3def4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SignalSciences2014EquityStockOptionsPlanMember_019e280b-3654-7d8e-ac85-51f9bec0d8ef" xlink:href="fsly-20260630.xsd#fsly_SignalSciences2014EquityStockOptionsPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019e280b-3654-7dff-9e92-296385b3def4" xlink:to="loc_fsly_SignalSciences2014EquityStockOptionsPlanMember_019e280b-3654-7d8e-ac85-51f9bec0d8ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2019EquityIncentivePlanMember_019e280b-3654-7349-ad66-8014db46323f" xlink:href="fsly-20260630.xsd#fsly_A2019EquityIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019e280b-3654-7dff-9e92-296385b3def4" xlink:to="loc_fsly_A2019EquityIncentivePlanMember_019e280b-3654-7349-ad66-8014db46323f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2025EmploymentInducementIncentivePlanMember_019e280b-3654-7b82-87b8-e7e0ff526717" xlink:href="fsly-20260630.xsd#fsly_A2025EmploymentInducementIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019e280b-3654-7dff-9e92-296385b3def4" xlink:to="loc_fsly_A2025EmploymentInducementIncentivePlanMember_019e280b-3654-7b82-87b8-e7e0ff526717" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_NumberOfEquityIncentivePlans_019e280b-3654-742f-9bdb-721fab0df3e8" xlink:href="fsly-20260630.xsd#fsly_NumberOfEquityIncentivePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:to="loc_fsly_NumberOfEquityIncentivePlans_019e280b-3654-742f-9bdb-721fab0df3e8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_BusinessCombinationUnvestedStockOptionAssumedShares_019e280b-3654-7a95-8756-68097dd55394" xlink:href="fsly-20260630.xsd#fsly_BusinessCombinationUnvestedStockOptionAssumedShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:to="loc_fsly_BusinessCombinationUnvestedStockOptionAssumedShares_019e280b-3654-7a95-8756-68097dd55394" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_019e280b-3654-7a94-a694-6c4064e281b6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_019e280b-3654-7a94-a694-6c4064e281b6" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019e280b-3654-7c07-81f1-9bc2f736cc6f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:to="loc_us-gaap_CommonStockSharesIssued_019e280b-3654-7c07-81f1-9bc2f736cc6f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3654-73fd-94a2-2f47fc756776" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ca9-bfc3-5d34080a2e00" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019e280b-3654-73fd-94a2-2f47fc756776" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityRestrictedStockUnitsRSUsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityRestrictedStockUnitsRSUsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityRestrictedStockUnitsRSUsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7572-b51e-5bbd350a142f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7d16-857a-b3abc6396b20" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7572-b51e-5bbd350a142f" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7d16-857a-b3abc6396b20" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019e280b-3654-7d42-853c-c1568ba7f10b" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7d16-857a-b3abc6396b20" xlink:to="loc_srt_RangeAxis_019e280b-3654-7d42-853c-c1568ba7f10b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e280b-3654-7d42-853c-c1568ba7f10b_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019e280b-3654-7d42-853c-c1568ba7f10b" xlink:to="loc_srt_RangeMember_019e280b-3654-7d42-853c-c1568ba7f10b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019e280b-3654-78d1-82c6-b10658db91b9" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019e280b-3654-7d42-853c-c1568ba7f10b" xlink:to="loc_srt_RangeMember_019e280b-3654-78d1-82c6-b10658db91b9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019e280b-3654-723a-b091-7ea710a2b082" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e280b-3654-78d1-82c6-b10658db91b9" xlink:to="loc_srt_MinimumMember_019e280b-3654-723a-b091-7ea710a2b082" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019e280b-3654-727a-a857-c9784ae56817" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019e280b-3654-78d1-82c6-b10658db91b9" xlink:to="loc_srt_MaximumMember_019e280b-3654-727a-a857-c9784ae56817" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e280b-3654-7d21-8f5c-fbfec37611eb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7d16-857a-b3abc6396b20" xlink:to="loc_us-gaap_AwardTypeAxis_019e280b-3654-7d21-8f5c-fbfec37611eb" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7d21-8f5c-fbfec37611eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-7d21-8f5c-fbfec37611eb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7d21-8f5c-fbfec37611eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7045-bff7-df7a67034ca7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-7d21-8f5c-fbfec37611eb" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7045-bff7-df7a67034ca7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019e280b-3654-7cac-a8d4-99d981a5a8cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7045-bff7-df7a67034ca7" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019e280b-3654-7cac-a8d4-99d981a5a8cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingAxis_019e280b-3654-7610-adca-bf9e6eb36343" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VestingAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7d16-857a-b3abc6396b20" xlink:to="loc_us-gaap_VestingAxis_019e280b-3654-7610-adca-bf9e6eb36343" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingDomain_019e280b-3654-7610-adca-bf9e6eb36343_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VestingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_019e280b-3654-7610-adca-bf9e6eb36343" xlink:to="loc_us-gaap_VestingDomain_019e280b-3654-7610-adca-bf9e6eb36343_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingDomain_019e280b-3654-7be3-b019-a3ad21ae2e3c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_VestingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_019e280b-3654-7610-adca-bf9e6eb36343" xlink:to="loc_us-gaap_VestingDomain_019e280b-3654-7be3-b019-a3ad21ae2e3c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_019e280b-3654-7f07-bc2e-84ad1d3bb11b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_019e280b-3654-7be3-b019-a3ad21ae2e3c" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_019e280b-3654-7f07-bc2e-84ad1d3bb11b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_019e280b-3654-7270-b0b7-dba695a2029a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_019e280b-3654-7be3-b019-a3ad21ae2e3c" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_019e280b-3654-7270-b0b7-dba695a2029a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019e280b-3654-7ad2-ba6d-6ef52ce508f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7572-b51e-5bbd350a142f" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019e280b-3654-7ad2-ba6d-6ef52ce508f5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_019e280b-3654-7f43-9c79-6dc9d97567d5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7572-b51e-5bbd350a142f" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_019e280b-3654-7f43-9c79-6dc9d97567d5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-7419-aacf-f83d643c446d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7572-b51e-5bbd350a142f" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-7419-aacf-f83d643c446d" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityScheduleofRSUandPSUActivityDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityScheduleofRSUandPSUActivityDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityScheduleofRSUandPSUActivityDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7afa-860f-f7ba8912a785" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b87-8e33-b71e6c0b69cc" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7afa-860f-f7ba8912a785" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b87-8e33-b71e6c0b69cc" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e280b-3654-7554-8a18-0f9556fe5331" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b87-8e33-b71e6c0b69cc" xlink:to="loc_us-gaap_AwardTypeAxis_019e280b-3654-7554-8a18-0f9556fe5331" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7554-8a18-0f9556fe5331_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-7554-8a18-0f9556fe5331" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7554-8a18-0f9556fe5331_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-70e5-91ee-68b96f0cd7a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-7554-8a18-0f9556fe5331" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-70e5-91ee-68b96f0cd7a5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019e280b-3654-79f6-b077-d37bd60b2942" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-70e5-91ee-68b96f0cd7a5" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019e280b-3654-79f6-b077-d37bd60b2942" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019e280b-3654-7a82-899c-6c11cac48753" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-70e5-91ee-68b96f0cd7a5" xlink:to="loc_us-gaap_PerformanceSharesMember_019e280b-3654-7a82-899c-6c11cac48753" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e280b-3654-77f9-bc77-3ad3dbee0d00" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7afa-860f-f7ba8912a785" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e280b-3654-77f9-bc77-3ad3dbee0d00" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019e280b-3654-7ffa-930b-8c6889cb30da" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e280b-3654-77f9-bc77-3ad3dbee0d00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019e280b-3654-7ffa-930b-8c6889cb30da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019e280b-3654-7d91-af9f-8664566267f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e280b-3654-77f9-bc77-3ad3dbee0d00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019e280b-3654-7d91-af9f-8664566267f1" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019e280b-3654-7151-bedd-726f364f8c84" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e280b-3654-77f9-bc77-3ad3dbee0d00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019e280b-3654-7151-bedd-726f364f8c84" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019e280b-3654-765c-afdb-3b3814baa302" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019e280b-3654-77f9-bc77-3ad3dbee0d00" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019e280b-3654-765c-afdb-3b3814baa302" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019e280b-3654-77e9-b2c1-e491cd1c8929" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019e280b-3654-7288-a334-2796f01ef6e3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7afa-860f-f7ba8912a785" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019e280b-3654-7288-a334-2796f01ef6e3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019e280b-3654-7867-add4-81126e9630ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019e280b-3654-7288-a334-2796f01ef6e3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019e280b-3654-7867-add4-81126e9630ca" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019e280b-3654-7e86-a0cf-310c6885c6d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019e280b-3654-7288-a334-2796f01ef6e3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019e280b-3654-7e86-a0cf-310c6885c6d8" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019e280b-3654-7186-b76a-f25651b8ef6b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019e280b-3654-7288-a334-2796f01ef6e3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019e280b-3654-7186-b76a-f25651b8ef6b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019e280b-3654-7244-951c-9c9f1c2c9f98" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019e280b-3654-7288-a334-2796f01ef6e3" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019e280b-3654-7244-951c-9c9f1c2c9f98" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019e280b-3654-722c-ab5b-5dfb34c87acf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityPSUsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityPSUsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityPSUsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7808-a6a9-2c960391b668" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-70d9-a9c5-2374a85c5e5e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7808-a6a9-2c960391b668" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-70d9-a9c5-2374a85c5e5e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e280b-3654-77c4-9147-635382a2a7fd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-70d9-a9c5-2374a85c5e5e" xlink:to="loc_us-gaap_AwardTypeAxis_019e280b-3654-77c4-9147-635382a2a7fd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-77c4-9147-635382a2a7fd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-77c4-9147-635382a2a7fd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-77c4-9147-635382a2a7fd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-71ff-a536-45674d6b5287" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-77c4-9147-635382a2a7fd" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-71ff-a536-45674d6b5287" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019e280b-3654-7f6e-bed9-4b8e523e4ab3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-71ff-a536-45674d6b5287" xlink:to="loc_us-gaap_PerformanceSharesMember_019e280b-3654-7f6e-bed9-4b8e523e4ab3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-7fee-8127-4d89518c1dca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7808-a6a9-2c960391b668" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-7fee-8127-4d89518c1dca" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityCompanywideBonusProgramsBonusProgramsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityCompanywideBonusProgramsBonusProgramsNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityCompanywideBonusProgramsBonusProgramsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ce9-8bfd-608bb99dface" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7942-b8e5-1cb6ed18cbbd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ce9-8bfd-608bb99dface" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7942-b8e5-1cb6ed18cbbd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_019e280b-3654-7be5-8e93-292ac3df61f3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7942-b8e5-1cb6ed18cbbd" xlink:to="loc_us-gaap_PlanNameAxis_019e280b-3654-7be5-8e93-292ac3df61f3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019e280b-3654-7be5-8e93-292ac3df61f3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_019e280b-3654-7be5-8e93-292ac3df61f3" xlink:to="loc_us-gaap_PlanNameDomain_019e280b-3654-7be5-8e93-292ac3df61f3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019e280b-3654-7383-aa69-207f3b4747f9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_019e280b-3654-7be5-8e93-292ac3df61f3" xlink:to="loc_us-gaap_PlanNameDomain_019e280b-3654-7383-aa69-207f3b4747f9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CompanyWideBonusProgramsMember_019e280b-3654-7572-a2ce-97606e15810d" xlink:href="fsly-20260630.xsd#fsly_CompanyWideBonusProgramsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019e280b-3654-7383-aa69-207f3b4747f9" xlink:to="loc_fsly_CompanyWideBonusProgramsMember_019e280b-3654-7572-a2ce-97606e15810d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019e280b-3654-7ee6-ae4a-c1f6b2af28ff" xlink:href="fsly-20260630.xsd#fsly_ShareBasedPaymentArrangementPerformanceTargetAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7942-b8e5-1cb6ed18cbbd" xlink:to="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019e280b-3654-7ee6-ae4a-c1f6b2af28ff" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7ee6-ae4a-c1f6b2af28ff_default" xlink:href="fsly-20260630.xsd#fsly_ShareBasedPaymentArrangementPerformanceTargetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019e280b-3654-7ee6-ae4a-c1f6b2af28ff" xlink:to="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7ee6-ae4a-c1f6b2af28ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7592-8899-fb391f35e4a6" xlink:href="fsly-20260630.xsd#fsly_ShareBasedPaymentArrangementPerformanceTargetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019e280b-3654-7ee6-ae4a-c1f6b2af28ff" xlink:to="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7592-8899-fb391f35e4a6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PerformanceTargetPayoutLevelOneMember_019e280b-3654-7851-b6ae-451d73aa3a4b" xlink:href="fsly-20260630.xsd#fsly_PerformanceTargetPayoutLevelOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7592-8899-fb391f35e4a6" xlink:to="loc_fsly_PerformanceTargetPayoutLevelOneMember_019e280b-3654-7851-b6ae-451d73aa3a4b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PerformanceTargetPayoutLevelTwoMember_019e280b-3654-705f-9dfd-14103272d363" xlink:href="fsly-20260630.xsd#fsly_PerformanceTargetPayoutLevelTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7592-8899-fb391f35e4a6" xlink:to="loc_fsly_PerformanceTargetPayoutLevelTwoMember_019e280b-3654-705f-9dfd-14103272d363" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PerformanceTargetPayoutLevelThreeMember_019e280b-3654-715f-9ec9-9895036221c3" xlink:href="fsly-20260630.xsd#fsly_PerformanceTargetPayoutLevelThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019e280b-3654-7592-8899-fb391f35e4a6" xlink:to="loc_fsly_PerformanceTargetPayoutLevelThreeMember_019e280b-3654-715f-9ec9-9895036221c3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019e280b-3654-788e-a92f-bca7572351c5" xlink:href="fsly-20260630.xsd#fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ce9-8bfd-608bb99dface" xlink:to="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019e280b-3654-788e-a92f-bca7572351c5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019e280b-3654-735f-9d54-83e6673e10ee" xlink:href="fsly-20260630.xsd#fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ce9-8bfd-608bb99dface" xlink:to="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019e280b-3654-735f-9d54-83e6673e10ee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PayoutOfPerformanceBasedRestrictedStockUnitsPercentage_019e280b-3654-7284-98ad-b5b0c9ae211c" xlink:href="fsly-20260630.xsd#fsly_PayoutOfPerformanceBasedRestrictedStockUnitsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ce9-8bfd-608bb99dface" xlink:to="loc_fsly_PayoutOfPerformanceBasedRestrictedStockUnitsPercentage_019e280b-3654-7284-98ad-b5b0c9ae211c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f8933-f718-77be-913a-b39a9f700c9d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ce9-8bfd-608bb99dface" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019f8933-f718-77be-913a-b39a9f700c9d" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityEmployeeStockPurchasePlanESPPNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityEmployeeStockPurchasePlanESPPNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityEmployeeStockPurchasePlanESPPNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7daf-bb08-b3829b4e4c86" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7daf-bb08-b3829b4e4c86" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019e280b-3654-7524-a131-ef8c33068bd8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7daf-bb08-b3829b4e4c86" xlink:to="loc_us-gaap_AwardTypeAxis_019e280b-3654-7524-a131-ef8c33068bd8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7524-a131-ef8c33068bd8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-7524-a131-ef8c33068bd8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7524-a131-ef8c33068bd8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7c8c-8a6c-05d81bb97526" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019e280b-3654-7524-a131-ef8c33068bd8" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7c8c-8a6c-05d81bb97526" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_019e280b-3654-742d-90ba-7b5a66f24841" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019e280b-3654-7c8c-8a6c-05d81bb97526" xlink:to="loc_us-gaap_EmployeeStockMember_019e280b-3654-742d-90ba-7b5a66f24841" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_019e280b-3654-7e9a-96f0-a580a3e0bc08" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_019e280b-3654-7e9a-96f0-a580a3e0bc08" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SharebasedCompensationArrangementbySharebasedPaymentAwardStockPlanOfferingPeriod_019e280b-3654-7f2f-80bf-5c5a86007ab2" xlink:href="fsly-20260630.xsd#fsly_SharebasedCompensationArrangementbySharebasedPaymentAwardStockPlanOfferingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:to="loc_fsly_SharebasedCompensationArrangementbySharebasedPaymentAwardStockPlanOfferingPeriod_019e280b-3654-7f2f-80bf-5c5a86007ab2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_019e280b-3654-74b4-9ddb-55e0f04f9819" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_019e280b-3654-74b4-9ddb-55e0f04f9819" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-7513-a044-ba5dc4bab42b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-7513-a044-ba5dc4bab42b" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019e280b-3654-77d5-972a-fcce72d8a6fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-76f2-96d2-72785e6d6953" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019e280b-3654-77d5-972a-fcce72d8a6fe" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityScheduleofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityScheduleofStockBasedCompensationExpenseDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityScheduleofStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ba7-af82-f2ce743f98b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b18-8cfa-d9886dfdab7f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ba7-af82-f2ce743f98b0" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b18-8cfa-d9886dfdab7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementOfIncomeLocationBalanceAxis_019e280b-3654-7d77-97ce-c66b9f91350c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StatementOfIncomeLocationBalanceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b18-8cfa-d9886dfdab7f" xlink:to="loc_us-gaap_StatementOfIncomeLocationBalanceAxis_019e280b-3654-7d77-97ce-c66b9f91350c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-77a1-b5d4-4db56d09df29" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ba7-af82-f2ce743f98b0" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-77a1-b5d4-4db56d09df29" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityScheduleofStockBasedCompensationExpenseDetails_1" xlink:type="simple" xlink:href="fsly-20260630.xsd#StockholdersEquityScheduleofStockBasedCompensationExpenseDetails_1"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityScheduleofStockBasedCompensationExpenseDetails_1" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ba7-af82-f2ce743f98b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b18-8cfa-d9886dfdab7f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ba7-af82-f2ce743f98b0" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019e280b-3654-7b18-8cfa-d9886dfdab7f" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-77a1-b5d4-4db56d09df29" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019e280b-3654-7ba7-af82-f2ce743f98b0" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019e280b-3654-77a1-b5d4-4db56d09df29" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/NetLossPerShareAttributabletoCommonStockholdersScheduleofAntidilutiveSecuritiesExcludedfromComputationofDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#NetLossPerShareAttributabletoCommonStockholdersScheduleofAntidilutiveSecuritiesExcludedfromComputationofDilutedNetLossPerShareDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/NetLossPerShareAttributabletoCommonStockholdersScheduleofAntidilutiveSecuritiesExcludedfromComputationofDilutedNetLossPerShareDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019e280b-371e-79ff-9ccb-09af9167c133" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019e280b-371e-7f7c-9bdb-2931c04d354c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019e280b-371e-79ff-9ccb-09af9167c133" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019e280b-371e-7f7c-9bdb-2931c04d354c" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019e280b-371e-7afb-8ea5-949c16b00038" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019e280b-371e-7f7c-9bdb-2931c04d354c" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019e280b-371e-7afb-8ea5-949c16b00038" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7afb-8ea5-949c16b00038_default" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019e280b-371e-7afb-8ea5-949c16b00038" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7afb-8ea5-949c16b00038_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019e280b-371e-7afb-8ea5-949c16b00038" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_019e280b-371e-7f8c-8af1-758b733e129c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:to="loc_us-gaap_EmployeeStockOptionMember_019e280b-371e-7f8c-8af1-758b733e129c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019e280b-371e-7eaf-8916-e6395b55679d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019e280b-371e-7eaf-8916-e6395b55679d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019e280b-371e-785c-909e-d4a3544d88f4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:to="loc_us-gaap_PerformanceSharesMember_019e280b-371e-785c-909e-d4a3544d88f4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_019e280b-371e-757d-b321-9e4428740f3e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:to="loc_us-gaap_EmployeeStockMember_019e280b-371e-757d-b321-9e4428740f3e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtSecuritiesMember_019e280b-371e-71d1-a8c1-f94880b26c4e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ConvertibleDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019e280b-371e-7335-912f-265f4a0324ab" xlink:to="loc_us-gaap_ConvertibleDebtSecuritiesMember_019e280b-371e-71d1-a8c1-f94880b26c4e" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019e280b-371e-7462-9c40-842b2ee8075c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019e280b-371e-79ff-9ccb-09af9167c133" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019e280b-371e-7462-9c40-842b2ee8075c" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/SegmentandGeographicInformationScheduleofPropertyandEquipmentandOperatingLeaseRightofUseAssetsNetbyGeographicAreaDetails" xlink:type="simple" xlink:href="fsly-20260630.xsd#SegmentandGeographicInformationScheduleofPropertyandEquipmentandOperatingLeaseRightofUseAssetsNetbyGeographicAreaDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/SegmentandGeographicInformationScheduleofPropertyandEquipmentandOperatingLeaseRightofUseAssetsNetbyGeographicAreaDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019e280b-371e-7181-b4fe-35b3c254b10a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019e280b-371e-7541-84f8-edfe0eef37b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019e280b-371e-7181-b4fe-35b3c254b10a" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019e280b-371e-7541-84f8-edfe0eef37b2" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019e280b-371e-7236-a431-b5576fb12272" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019e280b-371e-7541-84f8-edfe0eef37b2" xlink:to="loc_srt_StatementGeographicalAxis_019e280b-371e-7236-a431-b5576fb12272" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e280b-371e-7236-a431-b5576fb12272_default" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019e280b-371e-7236-a431-b5576fb12272" xlink:to="loc_srt_SegmentGeographicalDomain_019e280b-371e-7236-a431-b5576fb12272_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019e280b-371e-7d82-89fc-300501e734c9" xlink:href="https://xbrl.fasb.org/srt/2026/elts/srt-2026.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019e280b-371e-7236-a431-b5576fb12272" xlink:to="loc_srt_SegmentGeographicalDomain_019e280b-371e-7d82-89fc-300501e734c9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_019e280b-371e-7426-b7d1-1b617ba0cef0" xlink:href="https://xbrl.sec.gov/country/2026/country-2026.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e280b-371e-7d82-89fc-300501e734c9" xlink:to="loc_country_US_019e280b-371e-7426-b7d1-1b617ba0cef0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_019e280b-371e-765f-bd46-2b8a8ed24da9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019e280b-371e-7d82-89fc-300501e734c9" xlink:to="loc_us-gaap_NonUsMember_019e280b-371e-765f-bd46-2b8a8ed24da9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PropertyPlantAndEquipmentNetAndOperatingLeaseRightOfUseAssetsNet_019e280b-371e-79e3-9fce-fdc1235ef8dc" xlink:href="fsly-20260630.xsd#fsly_PropertyPlantAndEquipmentNetAndOperatingLeaseRightOfUseAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019e280b-371e-7181-b4fe-35b3c254b10a" xlink:to="loc_fsly_PropertyPlantAndEquipmentNetAndOperatingLeaseRightOfUseAssetsNet_019e280b-371e-79e3-9fce-fdc1235ef8dc" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="simple" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#IndividualsOnly"/>
  <link:definitionLink xlink:role="http://xbrl.sec.gov/ecd/role/IndividualsOnly" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_ecd_AllIndividualsMember" xlink:href="https://xbrl.sec.gov/ecd/2026/ecd-2026.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ArturBergmanMember_019f601c-a975-7f13-b422-11532c9a1539" xlink:href="fsly-20260630.xsd#fsly_ArturBergmanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_fsly_ArturBergmanMember_019f601c-a975-7f13-b422-11532c9a1539" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CharlesComptonMember_019e280b-34ad-7288-b97b-8894366902fd" xlink:href="fsly-20260630.xsd#fsly_CharlesComptonMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_fsly_CharlesComptonMember_019e280b-34ad-7288-b97b-8894366902fd" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_JeffreyFordMember_019f601c-e764-71d4-bb21-61212a545773" xlink:href="fsly-20260630.xsd#fsly_JeffreyFordMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_fsly_JeffreyFordMember_019f601c-e764-71d4-bb21-61212a545773" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PaulaLoopMember_019f601d-0b57-74c4-8905-bfc6fb976f99" xlink:href="fsly-20260630.xsd#fsly_PaulaLoopMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_fsly_PaulaLoopMember_019f601d-0b57-74c4-8905-bfc6fb976f99" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_RichardWongMember_019f601d-261d-784b-906b-64508bee69ef" xlink:href="fsly-20260630.xsd#fsly_RichardWongMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_fsly_RichardWongMember_019f601d-261d-784b-906b-64508bee69ef" xlink:type="arc" order="6"/>
  </link:definitionLink>
</link:linkbase>
