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

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019cb55e-022f-77a4-9ffc-e0b41802b263,g:65ca4704-2dd1-44c9-b2f0-88fbc239d2a2-->
<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-20260331.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_019dd1f2-639c-7748-8a22-8075d37d824f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019dd1f2-639c-77f0-a46b-2fd8c63b0dc7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019dd1f2-639c-7748-8a22-8075d37d824f" xlink:to="loc_us-gaap_StatementTable_019dd1f2-639c-77f0-a46b-2fd8c63b0dc7" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019dd1f2-639c-75eb-87cc-2e3680992264" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019dd1f2-639c-77f0-a46b-2fd8c63b0dc7" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019dd1f2-639c-75eb-87cc-2e3680992264" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019dd1f2-639c-75eb-87cc-2e3680992264_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019dd1f2-639c-75eb-87cc-2e3680992264" xlink:to="loc_us-gaap_ClassOfStockDomain_019dd1f2-639c-75eb-87cc-2e3680992264_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019dd1f2-639c-7ec5-90a3-f4af51764cc2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019dd1f2-639c-75eb-87cc-2e3680992264" xlink:to="loc_us-gaap_ClassOfStockDomain_019dd1f2-639c-7ec5-90a3-f4af51764cc2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019dd1f2-639c-7203-963b-173492c24bda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019dd1f2-639c-7ec5-90a3-f4af51764cc2" xlink:to="loc_us-gaap_CommonClassAMember_019dd1f2-639c-7203-963b-173492c24bda" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019dd1f2-639c-7fa9-8cff-b13c5c36d40f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019dd1f2-639c-7ec5-90a3-f4af51764cc2" xlink:to="loc_us-gaap_CommonClassBMember_019dd1f2-639c-7fa9-8cff-b13c5c36d40f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd1f2-639c-7748-8a22-8075d37d824f" xlink:to="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019cb55e-0360-7ef5-8727-50fed9afe08a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019cb55e-0360-7ef5-8727-50fed9afe08a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MarketableSecuritiesCurrent_019cb55e-0360-7e22-958f-c3f6c8357fd4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MarketableSecuritiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:to="loc_us-gaap_MarketableSecuritiesCurrent_019cb55e-0360-7e22-958f-c3f6c8357fd4" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsReceivableNetCurrent_019cb55e-0360-74b9-81dd-126c1005b964" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsReceivableNetCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:to="loc_us-gaap_AccountsReceivableNetCurrent_019cb55e-0360-74b9-81dd-126c1005b964" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019cb55e-0360-760e-84d9-f90e68a1b9b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PrepaidExpenseAndOtherAssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:to="loc_us-gaap_PrepaidExpenseAndOtherAssetsCurrent_019cb55e-0360-760e-84d9-f90e68a1b9b6" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsCurrent_019cb55e-0360-73a7-aeeb-0794cb94709d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AssetsCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsCurrentAbstract_019cb55e-0360-76ee-92ad-6d0bc3fb8d83" xlink:to="loc_us-gaap_AssetsCurrent_019cb55e-0360-73a7-aeeb-0794cb94709d" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019cb55e-0360-7609-931b-f53957567da0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019cb55e-0360-7609-931b-f53957567da0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseRightOfUseAsset_019cb55e-0360-7143-8415-7a3b7c9dbb29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseRightOfUseAsset"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_OperatingLeaseRightOfUseAsset_019cb55e-0360-7143-8415-7a3b7c9dbb29" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Goodwill_019cb55e-0360-7e24-8169-d9e85f7a042f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Goodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_Goodwill_019cb55e-0360-7e24-8169-d9e85f7a042f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019cb55e-0360-7c40-bf4a-2a1dab3d5a52" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019cb55e-0360-7c40-bf4a-2a1dab3d5a52" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssetsNoncurrent_019cb55e-0360-70c3-ab48-aff56f4b34eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherAssetsNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_OtherAssetsNoncurrent_019cb55e-0360-70c3-ab48-aff56f4b34eb" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019cb55e-0360-7d39-b414-52e49f11d534" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Assets"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AssetsAbstract_019cb55e-0360-7b82-b63e-d6b49612ff5b" xlink:to="loc_us-gaap_Assets_019cb55e-0360-7d39-b414-52e49f11d534" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd1f2-639c-7748-8a22-8075d37d824f" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrentAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccountsPayableCurrent_019cb55e-0360-7ff2-8724-715379717967" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccountsPayableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_AccountsPayableCurrent_019cb55e-0360-7ff2-8724-715379717967" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedLiabilitiesCurrent_019cb55e-0360-7cce-afec-65447735ecb7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccruedLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_AccruedLiabilitiesCurrent_019cb55e-0360-7cce-afec-65447735ecb7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtCurrent_019cb55e-0360-7e48-8376-a244e19f0d99" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_LongTermDebtCurrent_019cb55e-0360-7e48-8376-a244e19f0d99" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityCurrent_019cb55e-0360-7e2b-812f-20c12ca09135" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_OperatingLeaseLiabilityCurrent_019cb55e-0360-7e2b-812f-20c12ca09135" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019cfc03-1594-761d-867d-5b49c77649af" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ContractWithCustomerLiabilityCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_ContractWithCustomerLiabilityCurrent_019cfc03-1594-761d-867d-5b49c77649af" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesCurrent_019cb55e-0360-7a49-ad98-6321e124fa5b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_OtherLiabilitiesCurrent_019cb55e-0360-7a49-ad98-6321e124fa5b" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesCurrent_019cb55e-0360-7c69-8ed8-a2d56e15070a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesCurrentAbstract_019cb55e-0360-7248-805e-3bb9df076fcd" xlink:to="loc_us-gaap_LiabilitiesCurrent_019cb55e-0360-7c69-8ed8-a2d56e15070a" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtNoncurrent_019cb55e-0360-7712-aa6a-42bded7a65bd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebtNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_LongTermDebtNoncurrent_019cb55e-0360-7712-aa6a-42bded7a65bd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019cb55e-0360-7f5a-ab4a-5aa4fad9af53" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OperatingLeaseLiabilityNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_OperatingLeaseLiabilityNoncurrent_019cb55e-0360-7f5a-ab4a-5aa4fad9af53" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLiabilitiesNoncurrent_019cb55e-0360-76ad-a3eb-9afecfd08be1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherLiabilitiesNoncurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_OtherLiabilitiesNoncurrent_019cb55e-0360-76ad-a3eb-9afecfd08be1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019cb55e-0360-7c98-97ad-f70be4ca46f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Liabilities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_Liabilities_019cb55e-0360-7c98-97ad-f70be4ca46f7" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommitmentsAndContingencies_019cb55e-0360-72cc-8965-6bcdd4a9da06" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommitmentsAndContingencies"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_CommitmentsAndContingencies_019cb55e-0360-72cc-8965-6bcdd4a9da06" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquityAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019cb55e-0360-7c8e-bb73-adc213ff8976" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:to="loc_us-gaap_CommonStockValue_019cb55e-0360-7c8e-bb73-adc213ff8976" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapital_019cb55e-0360-7e86-8b3c-21e8b1c4de45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapital"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:to="loc_us-gaap_AdditionalPaidInCapital_019cb55e-0360-7e86-8b3c-21e8b1c4de45" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019cb55e-0360-723f-885d-7dd1e0a274e0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019cb55e-0360-723f-885d-7dd1e0a274e0" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019cb55e-0360-75d0-888e-c5cc0e8034b4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019cb55e-0360-75d0-888e-c5cc0e8034b4" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019cb55e-0360-760c-933c-d060b16fcd71" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StockholdersEquityAbstract_019cb55e-0360-7828-8bb4-68f7bc1376c2" xlink:to="loc_us-gaap_StockholdersEquity_019cb55e-0360-760c-933c-d060b16fcd71" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019cb55e-0360-7fb7-953a-9c59c8483555" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquityAbstract_019cb55e-0360-76c6-afd4-d58ab495d914" xlink:to="loc_us-gaap_LiabilitiesAndStockholdersEquity_019cb55e-0360-7fb7-953a-9c59c8483555" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/CONDENSEDCONSOLIDATEDBALANCESHEETSParenthetical" xlink:type="simple" xlink:href="fsly-20260331.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_019dd225-6d4a-76c1-a249-939389b6017b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019dd225-6d4a-70f9-b9db-0c3a24807b2e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019dd225-6d4a-76c1-a249-939389b6017b" xlink:to="loc_us-gaap_StatementTable_019dd225-6d4a-70f9-b9db-0c3a24807b2e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementClassOfStockAxis_019dd225-6d4a-7d97-8b71-6a4ed6ae1aa5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementClassOfStockAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019dd225-6d4a-70f9-b9db-0c3a24807b2e" xlink:to="loc_us-gaap_StatementClassOfStockAxis_019dd225-6d4a-7d97-8b71-6a4ed6ae1aa5" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019dd225-6d4a-7d97-8b71-6a4ed6ae1aa5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019dd225-6d4a-7d97-8b71-6a4ed6ae1aa5" xlink:to="loc_us-gaap_ClassOfStockDomain_019dd225-6d4a-7d97-8b71-6a4ed6ae1aa5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ClassOfStockDomain_019dd225-6d4a-7a8f-bb61-641a60b37785" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ClassOfStockDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_019dd225-6d4a-7d97-8b71-6a4ed6ae1aa5" xlink:to="loc_us-gaap_ClassOfStockDomain_019dd225-6d4a-7a8f-bb61-641a60b37785" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassAMember_019dd225-6d4a-72a5-9c8e-7457a99e8de3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassAMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019dd225-6d4a-7a8f-bb61-641a60b37785" xlink:to="loc_us-gaap_CommonClassAMember_019dd225-6d4a-72a5-9c8e-7457a99e8de3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonClassBMember_019dd225-6d4a-7d8f-b028-223143307563" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonClassBMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_019dd225-6d4a-7a8f-bb61-641a60b37785" xlink:to="loc_us-gaap_CommonClassBMember_019dd225-6d4a-7d8f-b028-223143307563" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019cb55e-0360-7db6-9cc6-fe80975fe4b9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd225-6d4a-76c1-a249-939389b6017b" xlink:to="loc_us-gaap_AllowanceForDoubtfulAccountsReceivableCurrent_019cb55e-0360-7db6-9cc6-fe80975fe4b9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_019dd225-6d4a-70f8-970e-6e35681b5b1a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockParOrStatedValuePerShare"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd225-6d4a-76c1-a249-939389b6017b" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_019dd225-6d4a-70f8-970e-6e35681b5b1a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_019dd225-6d4a-7446-937d-192ccf643e21" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesAuthorized"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd225-6d4a-76c1-a249-939389b6017b" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_019dd225-6d4a-7446-937d-192ccf643e21" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019dd225-6d4a-7777-8e85-cbdc1ba72258" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd225-6d4a-76c1-a249-939389b6017b" xlink:to="loc_us-gaap_CommonStockSharesIssued_019dd225-6d4a-7777-8e85-cbdc1ba72258" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019dd225-6d4a-732a-b0ac-7d79feaef22f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019dd225-6d4a-76c1-a249-939389b6017b" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019dd225-6d4a-732a-b0ac-7d79feaef22f" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/CONDENSEDCONSOLIDATEDSTATEMENTSOFSTOCKHOLDERSEQUITY" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0360-7337-aa31-375644ec5b56" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementTable_019cb55e-0360-7b49-bc0b-0edf4dceea1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_019cb55e-0360-7337-aa31-375644ec5b56" xlink:to="loc_us-gaap_StatementTable_019cb55e-0360-7b49-bc0b-0edf4dceea1e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StatementEquityComponentsAxis_019cb55e-0360-735a-b1e8-b87f3510680a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StatementEquityComponentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_019cb55e-0360-7b49-bc0b-0edf4dceea1e" xlink:to="loc_us-gaap_StatementEquityComponentsAxis_019cb55e-0360-735a-b1e8-b87f3510680a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019cb55e-0360-735a-b1e8-b87f3510680a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019cb55e-0360-735a-b1e8-b87f3510680a" xlink:to="loc_us-gaap_EquityComponentDomain_019cb55e-0360-735a-b1e8-b87f3510680a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EquityComponentDomain_019cb55e-0360-726d-b665-1fc0c868414e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EquityComponentDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementEquityComponentsAxis_019cb55e-0360-735a-b1e8-b87f3510680a" xlink:to="loc_us-gaap_EquityComponentDomain_019cb55e-0360-726d-b665-1fc0c868414e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockMember_019cb55e-0360-7794-a938-b7a6d87cc6bf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019cb55e-0360-726d-b665-1fc0c868414e" xlink:to="loc_us-gaap_CommonStockMember_019cb55e-0360-7794-a938-b7a6d87cc6bf" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalMember_019cb55e-0360-78d6-a089-1ab5efa2e605" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdditionalPaidInCapitalMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019cb55e-0360-726d-b665-1fc0c868414e" xlink:to="loc_us-gaap_AdditionalPaidInCapitalMember_019cb55e-0360-78d6-a089-1ab5efa2e605" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019cb55e-0360-7fa3-8a3e-87846e26d1ca" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019cb55e-0360-726d-b665-1fc0c868414e" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeMember_019cb55e-0360-7fa3-8a3e-87846e26d1ca" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsMember_019cb55e-0360-7432-bfa2-c7a770227e04" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RetainedEarningsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EquityComponentDomain_019cb55e-0360-726d-b665-1fc0c868414e" xlink:to="loc_us-gaap_RetainedEarningsMember_019cb55e-0360-7432-bfa2-c7a770227e04" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncreaseDecreaseInStockholdersEquityRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_019cb55e-0360-7337-aa31-375644ec5b56" xlink:to="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019cb55e-0360-7601-a946-73186d51c4b8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019cb55e-0360-7601-a946-73186d51c4b8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019cb55e-0360-7b1d-a9c7-325e09ee5286" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_StockholdersEquity_019cb55e-0360-7b1d-a9c7-325e09ee5286" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019cb55e-0360-7c06-9428-d366d5e77260" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_019cb55e-0360-7c06-9428-d366d5e77260" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019cb55e-0360-7619-9609-e86669d9aab9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodValueStockOptionsExercised_019cb55e-0360-7619-9609-e86669d9aab9" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_019cb55e-0360-7f84-8849-a77b3dc0da5a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesRestrictedStockAwardGross_019cb55e-0360-7f84-8849-a77b3dc0da5a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019cb55e-0360-75a6-8a7d-5b08624279a2" xlink:href="fsly-20260331.xsd#fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019cb55e-0360-75a6-8a7d-5b08624279a2" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019cb55e-0360-7db6-80f8-ce1be509c863" xlink:href="fsly-20260331.xsd#fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019cb55e-0360-7db6-80f8-ce1be509c863" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019cb55e-0360-7311-be81-5ac96bfd10d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_AdjustmentsToAdditionalPaidInCapitalSharebasedCompensationRequisiteServicePeriodRecognitionValue_019cb55e-0360-7311-be81-5ac96bfd10d9" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019cb55e-0360-79a0-a4a5-2b5fce053091" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_NetIncomeLoss_019cb55e-0360-79a0-a4a5-2b5fce053091" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019cb55e-0360-77c1-8791-457ce620afc5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInStockholdersEquityRollForward_019cb55e-0360-7cb3-b8df-36b9e95b52e9" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPortionAttributableToParent_019cb55e-0360-77c1-8791-457ce620afc5" xlink:type="arc" order="10"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019cb55e-0360-78fe-a70c-6e981b4c88c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019cb55e-0360-7520-9d3b-78cce3c0c475" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockholdersEquity"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/SummaryofSignificantAccountingPoliciesDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7b07-85cc-a1953b7a2df4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConcentrationRiskTable_019cb55e-0361-7311-850e-6ac068d0ce12" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConcentrationRiskTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019cb55e-0361-7b07-85cc-a1953b7a2df4" xlink:to="loc_us-gaap_ConcentrationRiskTable_019cb55e-0361-7311-850e-6ac068d0ce12" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019dd234-e12b-7a71-8774-062e3d1a82a8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019cb55e-0361-7311-850e-6ac068d0ce12" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019dd234-e12b-7a71-8774-062e3d1a82a8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019dd234-e12b-7a71-8774-062e3d1a82a8_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019dd234-e12b-7a71-8774-062e3d1a82a8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019dd234-e12b-7a71-8774-062e3d1a82a8_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019dd234-e12b-721a-8b7e-c9017f5f6805" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019dd234-e12b-7a71-8774-062e3d1a82a8" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019dd234-e12b-721a-8b7e-c9017f5f6805" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ServersMember_019dd582-67d7-7d07-b301-1efd1eda6633" xlink:href="fsly-20260331.xsd#fsly_ServersMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019dd234-e12b-721a-8b7e-c9017f5f6805" xlink:to="loc_fsly_ServersMember_019dd582-67d7-7d07-b301-1efd1eda6633" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019dd28f-079f-7787-b6f2-28ecf507881b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ChangeInAccountingEstimateByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ConcentrationRiskTable_019cb55e-0361-7311-850e-6ac068d0ce12" xlink:to="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019dd28f-079f-7787-b6f2-28ecf507881b" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019dd28f-079f-7787-b6f2-28ecf507881b_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019dd28f-079f-7787-b6f2-28ecf507881b" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019dd28f-079f-7787-b6f2-28ecf507881b_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019dd28f-079f-751c-ae7d-fca27f0eb09e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ChangeInAccountingEstimateTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_ChangeInAccountingEstimateByTypeAxis_019dd28f-079f-7787-b6f2-28ecf507881b" xlink:to="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019dd28f-079f-751c-ae7d-fca27f0eb09e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ServiceLifeMember_019dd586-f214-7dde-8a66-364f3763a33c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ServiceLifeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ChangeInAccountingEstimateTypeDomain_019dd28f-079f-751c-ae7d-fca27f0eb09e" xlink:to="loc_us-gaap_ServiceLifeMember_019dd586-f214-7dde-8a66-364f3763a33c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019dd234-e12b-7ecb-be51-61da86ec1236" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentUsefulLife"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019cb55e-0361-7b07-85cc-a1953b7a2df4" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentUsefulLife_019dd234-e12b-7ecb-be51-61da86ec1236" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019dd234-e12b-7dc7-8df9-9df0866dbc61" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NetIncomeLoss"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019cb55e-0361-7b07-85cc-a1953b7a2df4" xlink:to="loc_us-gaap_NetIncomeLoss_019dd234-e12b-7dc7-8df9-9df0866dbc61" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019dd234-e12b-7451-b5b6-2eba800e6985" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ConcentrationRiskLineItems_019cb55e-0361-7b07-85cc-a1953b7a2df4" xlink:to="loc_us-gaap_Depreciation_019dd234-e12b-7451-b5b6-2eba800e6985" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueScheduleofNetRevenuebyGeographicRegionDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7930-a6b1-629c54390466" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019cb55e-0361-7e27-810d-1ceb2376ed4a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019cb55e-0361-7930-a6b1-629c54390466" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019cb55e-0361-7e27-810d-1ceb2376ed4a" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019cb55e-0361-7518-8599-d6db8a820e4e" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019cb55e-0361-7e27-810d-1ceb2376ed4a" xlink:to="loc_srt_StatementGeographicalAxis_019cb55e-0361-7518-8599-d6db8a820e4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019cb55e-0361-7518-8599-d6db8a820e4e_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019cb55e-0361-7518-8599-d6db8a820e4e" xlink:to="loc_srt_SegmentGeographicalDomain_019cb55e-0361-7518-8599-d6db8a820e4e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019cb55e-0361-7c8f-af3c-628679095f5c" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019cb55e-0361-7518-8599-d6db8a820e4e" xlink:to="loc_srt_SegmentGeographicalDomain_019cb55e-0361-7c8f-af3c-628679095f5c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_019cb55e-0361-7740-990c-db63c5c523d1" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019cb55e-0361-7c8f-af3c-628679095f5c" xlink:to="loc_country_US_019cb55e-0361-7740-990c-db63c5c523d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_019cfb7c-ae8d-77cd-87e7-4ad0f1f5c63d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019cb55e-0361-7c8f-af3c-628679095f5c" xlink:to="loc_us-gaap_NonUsMember_019cfb7c-ae8d-77cd-87e7-4ad0f1f5c63d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019cb55e-0361-7f44-aa3a-531c90439b6b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019cb55e-0361-7930-a6b1-629c54390466" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019cb55e-0361-7f44-aa3a-531c90439b6b" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueScheduleofRevenuebyProductLineDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7bec-be64-9fd115d71e86" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DisaggregationOfRevenueTable_019cb55e-0361-7d79-bdb3-76cf4632ab99" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DisaggregationOfRevenueTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019cb55e-0361-7bec-be64-9fd115d71e86" xlink:to="loc_us-gaap_DisaggregationOfRevenueTable_019cb55e-0361-7d79-bdb3-76cf4632ab99" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductOrServiceAxis_019cb55e-0361-7c50-851f-89a881c533d2" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductOrServiceAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DisaggregationOfRevenueTable_019cb55e-0361-7d79-bdb3-76cf4632ab99" xlink:to="loc_srt_ProductOrServiceAxis_019cb55e-0361-7c50-851f-89a881c533d2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7c50-851f-89a881c533d2_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_019cb55e-0361-7c50-851f-89a881c533d2" xlink:to="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7c50-851f-89a881c533d2_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7357-a499-c9c893b9e595" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_ProductsAndServicesDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_019cb55e-0361-7c50-851f-89a881c533d2" xlink:to="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7357-a499-c9c893b9e595" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_NetworkServicesMember_019cb55e-0361-7889-a4fa-89cddae9d0db" xlink:href="fsly-20260331.xsd#fsly_NetworkServicesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7357-a499-c9c893b9e595" xlink:to="loc_fsly_NetworkServicesMember_019cb55e-0361-7889-a4fa-89cddae9d0db" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SecurityMember_019cb55e-0361-760e-a0d7-173ab499f61c" xlink:href="fsly-20260331.xsd#fsly_SecurityMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7357-a499-c9c893b9e595" xlink:to="loc_fsly_SecurityMember_019cb55e-0361-760e-a0d7-173ab499f61c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_OtherMember_019cb55e-0361-751c-80a6-32f281dcd68c" xlink:href="fsly-20260331.xsd#fsly_OtherMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_ProductsAndServicesDomain_019cb55e-0361-7357-a499-c9c893b9e595" xlink:to="loc_fsly_OtherMember_019cb55e-0361-751c-80a6-32f281dcd68c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019cb55e-0361-7fa3-b4bd-2b17786065d9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DisaggregationOfRevenueLineItems_019cb55e-0361-7bec-be64-9fd115d71e86" xlink:to="loc_us-gaap_RevenueFromContractWithCustomerIncludingAssessedTax_019cb55e-0361-7fa3-b4bd-2b17786065d9" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueRemainingPerformanceObligationNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019cb55e-0361-7915-9ff4-e9669f95dadb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019cb55e-0361-7915-9ff4-e9669f95dadb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019cb55e-0361-76a6-b1e7-59a738c48103" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019cb55e-0361-7915-9ff4-e9669f95dadb" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionStartDateAxis_019cb55e-0361-76a6-b1e7-59a738c48103" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019cb55e-0361-74da-8db3-c794ad52273d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019cb55e-0361-74da-8db3-c794ad52273d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019cb55e-0361-7f5a-8ec9-3699dda45f76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019cb55e-0361-7f5a-8ec9-3699dda45f76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019cb55e-0361-7dd0-9232-f4c9fcb77180" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019cb55e-0361-7dd0-9232-f4c9fcb77180" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/RevenueRemainingPerformanceObligationNarrativeDetails_1" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019cb55e-0361-7915-9ff4-e9669f95dadb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionTable_019cb55e-0361-7915-9ff4-e9669f95dadb" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligation_019cb55e-0361-74da-8db3-c794ad52273d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligation_019cb55e-0361-74da-8db3-c794ad52273d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019cb55e-0361-7f5a-8ec9-3699dda45f76" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationPercentage_019cb55e-0361-7f5a-8ec9-3699dda45f76" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019cb55e-0361-7dd0-9232-f4c9fcb77180" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionLineItems_019cb55e-0361-7e33-a8b5-5d914ed5e4cf" xlink:to="loc_us-gaap_RevenueRemainingPerformanceObligationExpectedTimingOfSatisfactionPeriod1_019cb55e-0361-7dd0-9232-f4c9fcb77180" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/InvestmentsandFairValueMeasurementsDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019cfb75-8174-7eb3-84d1-3af4ddd595c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableForSaleTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019cfb75-8174-7eb3-84d1-3af4ddd595c3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAxis_019cfb75-8174-7ea1-a6c5-8cf050e43f3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019cfb75-8174-7eb3-84d1-3af4ddd595c3" xlink:to="loc_us-gaap_CashAndCashEquivalentsAxis_019cfb75-8174-7ea1-a6c5-8cf050e43f3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019cfb75-8174-7ea1-a6c5-8cf050e43f3a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019cfb75-8174-7ea1-a6c5-8cf050e43f3a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019cfb75-8174-7ea1-a6c5-8cf050e43f3a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019cfb75-8174-710a-83e3-4b2067a359de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_CashAndCashEquivalentsAxis_019cfb75-8174-7ea1-a6c5-8cf050e43f3a" xlink:to="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019cfb75-8174-710a-83e3-4b2067a359de" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashMember_019cfb75-8174-73f3-8a94-560149ee4346" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019cfb75-8174-710a-83e3-4b2067a359de" xlink:to="loc_us-gaap_CashMember_019cfb75-8174-73f3-8a94-560149ee4346" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MoneyMarketFundsMember_019cfb75-8174-780e-8282-be65afd6cfee" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MoneyMarketFundsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RestrictedCashAndCashEquivalentsCashAndCashEquivalentsMember_019cfb75-8174-710a-83e3-4b2067a359de" xlink:to="loc_us-gaap_MoneyMarketFundsMember_019cfb75-8174-780e-8282-be65afd6cfee" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019cfb75-8174-7732-95c4-2c654673eba3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019cfb75-8174-7eb3-84d1-3af4ddd595c3" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019cfb75-8174-7732-95c4-2c654673eba3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019cfb75-8174-7732-95c4-2c654673eba3_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019cfb75-8174-7732-95c4-2c654673eba3" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019cfb75-8174-7732-95c4-2c654673eba3_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019cfb75-8174-782d-acb2-36f6b8bae201" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_019cfb75-8174-7732-95c4-2c654673eba3" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019cfb75-8174-782d-acb2-36f6b8bae201" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_019cfb75-8174-71c8-b389-cc4ff86718f4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel1Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019cfb75-8174-782d-acb2-36f6b8bae201" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_019cfb75-8174-71c8-b389-cc4ff86718f4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_019cfb75-8174-7c5f-88ee-5e2c5b143887" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FairValueInputsLevel2Member"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_019cfb75-8174-782d-acb2-36f6b8bae201" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_019cfb75-8174-7c5f-88ee-5e2c5b143887" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancialInstrumentAxis_019cfb75-8174-7473-a939-9ce7b7eaf795" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FinancialInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019cfb75-8174-7eb3-84d1-3af4ddd595c3" xlink:to="loc_us-gaap_FinancialInstrumentAxis_019cfb75-8174-7473-a939-9ce7b7eaf795" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-7473-a939-9ce7b7eaf795_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019cfb75-8174-7473-a939-9ce7b7eaf795" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-7473-a939-9ce7b7eaf795_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FinancialInstrumentAxis_019cfb75-8174-7473-a939-9ce7b7eaf795" xlink:to="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_USTreasurySecuritiesMember_019cfb75-8174-7962-8ce1-a07ccbd5edd8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_USTreasurySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:to="loc_us-gaap_USTreasurySecuritiesMember_019cfb75-8174-7962-8ce1-a07ccbd5edd8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_019cfb75-8174-7733-8219-d85b2e06b99a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CorporateDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_019cfb75-8174-7733-8219-d85b2e06b99a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommercialPaperMember_019cfb75-8174-77c0-bf12-54031dbebdf0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommercialPaperMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:to="loc_us-gaap_CommercialPaperMember_019cfb75-8174-77c0-bf12-54031dbebdf0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AgencySecuritiesMember_019db683-c05d-70cf-80c0-0327cc2fab8c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AgencySecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:to="loc_us-gaap_AgencySecuritiesMember_019db683-c05d-70cf-80c0-0327cc2fab8c" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_MunicipalBondsMember_019cfb75-8174-76b2-939f-1f601538aa75" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_MunicipalBondsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:to="loc_us-gaap_MunicipalBondsMember_019cfb75-8174-76b2-939f-1f601538aa75" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CertificatesOfDepositMember_019cfb75-8174-7905-9818-13ae2e362c6a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CertificatesOfDepositMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_TransfersAndServicingOfFinancialInstrumentsTypesOfFinancialInstrumentsDomain_019cfb75-8174-740b-b580-1ee85c40298a" xlink:to="loc_us-gaap_CertificatesOfDepositMember_019cfb75-8174-7905-9818-13ae2e362c6a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_019d6979-bc90-732b-b579-cad4e82fb756" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleTable_019cfb75-8174-7eb3-84d1-3af4ddd595c3" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_019d6979-bc90-732b-b579-cad4e82fb756" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_019d6979-bc90-732b-b579-cad4e82fb756_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_019d6979-bc90-732b-b579-cad4e82fb756" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_019d6979-bc90-732b-b579-cad4e82fb756_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_019d6979-bc90-7c57-8f09-d6a0edd0e7c2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BalanceSheetLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_019d6979-bc90-732b-b579-cad4e82fb756" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_019d6979-bc90-7c57-8f09-d6a0edd0e7c2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsMember_019d697a-c591-7492-adda-692d5caa59c0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019d6979-bc90-7c57-8f09-d6a0edd0e7c2" xlink:to="loc_us-gaap_CashAndCashEquivalentsMember_019d697a-c591-7492-adda-692d5caa59c0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_MarketableSecuritiesCurrentMember_019d697b-4561-7eb5-beda-82d59f25b2ed" xlink:href="fsly-20260331.xsd#fsly_MarketableSecuritiesCurrentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_BalanceSheetLocationDomain_019d6979-bc90-7c57-8f09-d6a0edd0e7c2" xlink:to="loc_fsly_MarketableSecuritiesCurrentMember_019d697b-4561-7eb5-beda-82d59f25b2ed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019cfb75-8174-7f85-950d-98ff5b8080da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019cfb75-8174-7f85-950d-98ff5b8080da" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019cfb75-8174-7a5f-bc60-a146bdf64f2d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019cfb75-8174-7a5f-bc60-a146bdf64f2d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019cfb75-8174-7043-ba38-53fd097ae729" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:to="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019cfb75-8174-7043-ba38-53fd097ae729" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019cfb75-8174-74da-a60f-aa09c305afed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019cfb75-8174-7043-ba38-53fd097ae729" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAmortizedCostBasis_019cfb75-8174-74da-a60f-aa09c305afed" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019cfb75-8174-7f6d-9db2-08a3805aab23" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019cfb75-8174-7043-ba38-53fd097ae729" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019cfb75-8174-7f6d-9db2-08a3805aab23" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019cfb75-8174-70a7-aec5-ee2ca3eadf64" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019cfb75-8174-7043-ba38-53fd097ae729" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019cfb75-8174-70a7-aec5-ee2ca3eadf64" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019cfb75-8174-7a4b-bca5-d830d39a4de1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AvailableForSaleSecuritiesDebtSecurities"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtSecuritiesAvailableforsaleAmortizedCostAbstract_019cfb75-8174-7043-ba38-53fd097ae729" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtSecurities_019cfb75-8174-7a4b-bca5-d830d39a4de1" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost_019cfb75-8174-7b4f-81ba-3d040317d303" xlink:href="fsly-20260331.xsd#fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:to="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleAmortizedCost_019cfb75-8174-7b4f-81ba-3d040317d303" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue_019cfb75-8174-772b-9bc6-69da8b9511f8" xlink:href="fsly-20260331.xsd#fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_019cfb75-8174-7993-bb3e-8bb05fda0b89" xlink:to="loc_fsly_CashAndCashEquivalentAndDebtSecuritiesAvailableForSaleFairValue_019cfb75-8174-772b-9bc6-69da8b9511f8" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/BalanceSheetInformationScheduleofPropertyandEquipmentNetDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7cb5-8d82-248d589f14a3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019cb55e-0361-7359-80f9-cb9a56d8dc30" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7cb5-8d82-248d589f14a3" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019cb55e-0361-7359-80f9-cb9a56d8dc30" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-781f-9583-ad05818c1ca9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019cb55e-0361-7359-80f9-cb9a56d8dc30" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-781f-9583-ad05818c1ca9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-781f-9583-ad05818c1ca9_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-781f-9583-ad05818c1ca9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-781f-9583-ad05818c1ca9_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-781f-9583-ad05818c1ca9" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComputerEquipmentMember_019cb55e-0361-7588-a43d-78b23feb3b73" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ComputerEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:to="loc_us-gaap_ComputerEquipmentMember_019cb55e-0361-7588-a43d-78b23feb3b73" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseholdImprovementsMember_019cb55e-0361-7cdc-a15d-585784783445" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LeaseholdImprovementsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:to="loc_us-gaap_LeaseholdImprovementsMember_019cb55e-0361-7cdc-a15d-585784783445" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FurnitureAndFixturesMember_019cb55e-0361-70e5-8bfc-9d336af5c4db" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FurnitureAndFixturesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:to="loc_us-gaap_FurnitureAndFixturesMember_019cb55e-0361-70e5-8bfc-9d336af5c4db" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OfficeEquipmentMember_019cb55e-0361-7bd9-9151-2a0aff9dad4f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_OfficeEquipmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:to="loc_us-gaap_OfficeEquipmentMember_019cb55e-0361-7bd9-9151-2a0aff9dad4f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_019cb55e-0361-7993-a664-5ecbdb740a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f79-a1a6-a045b8193cae" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_019cb55e-0361-7993-a664-5ecbdb740a1d" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_019cb55e-0361-715d-bcec-61ffa8e52304" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7cb5-8d82-248d589f14a3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetBeforeAccumulatedDepreciationAndAmortization_019cb55e-0361-715d-bcec-61ffa8e52304" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_019cb55e-0361-7411-b854-893af455d58c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7cb5-8d82-248d589f14a3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAccumulatedDepreciationAndAmortization_019cb55e-0361-7411-b854-893af455d58c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019cb55e-0361-7136-a968-dc833ce6a209" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7cb5-8d82-248d589f14a3" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentAndFinanceLeaseRightOfUseAssetAfterAccumulatedDepreciationAndAmortization_019cb55e-0361-7136-a968-dc833ce6a209" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/BalanceSheetInformationNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7d9e-be42-cc8dff607cd7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019cb55e-0361-70a3-ae3f-4a9584321351" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfPropertyPlantAndEquipmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7d9e-be42-cc8dff607cd7" xlink:to="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019cb55e-0361-70a3-ae3f-4a9584321351" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-7f78-b3b2-4a26d071b73f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentByTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfPropertyPlantAndEquipmentTable_019cb55e-0361-70a3-ae3f-4a9584321351" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-7f78-b3b2-4a26d071b73f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f78-b3b2-4a26d071b73f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-7f78-b3b2-4a26d071b73f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-7f78-b3b2-4a26d071b73f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-78c0-9fed-d524b0410a4e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PropertyPlantAndEquipmentTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentByTypeAxis_019cb55e-0361-7f78-b3b2-4a26d071b73f" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-78c0-9fed-d524b0410a4e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SoftwareDevelopmentMember_019cb55e-0361-7147-b674-aeb3296cafc6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SoftwareDevelopmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentTypeDomain_019cb55e-0361-78c0-9fed-d524b0410a4e" xlink:to="loc_us-gaap_SoftwareDevelopmentMember_019cb55e-0361-7147-b674-aeb3296cafc6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Depreciation_019cb55e-0361-70d6-b2f1-11dd5d5bbecc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_Depreciation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7d9e-be42-cc8dff607cd7" xlink:to="loc_us-gaap_Depreciation_019cb55e-0361-70d6-b2f1-11dd5d5bbecc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CapitalizedContractCostAmortization_019de1c3-a475-726f-8ede-57725dfb324e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CapitalizedContractCostAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PropertyPlantAndEquipmentLineItems_019cb55e-0361-7d9e-be42-cc8dff607cd7" xlink:to="loc_us-gaap_CapitalizedContractCostAmortization_019de1c3-a475-726f-8ede-57725dfb324e" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/LeasesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-75f3-81c9-3f8140883e17" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeLeaseDescriptionLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeLeaseDescriptionTable_019cb55e-0361-797b-ba57-cc9f92ab1c77" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeLeaseDescriptionTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019cb55e-0361-75f3-81c9-3f8140883e17" xlink:to="loc_us-gaap_LesseeLeaseDescriptionTable_019cb55e-0361-797b-ba57-cc9f92ab1c77" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019cb55e-0361-7cdd-ac7a-6586fff9abcd" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LesseeLeaseDescriptionTable_019cb55e-0361-797b-ba57-cc9f92ab1c77" xlink:to="loc_srt_RangeAxis_019cb55e-0361-7cdd-ac7a-6586fff9abcd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019cb55e-0361-7cdd-ac7a-6586fff9abcd_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019cb55e-0361-7cdd-ac7a-6586fff9abcd" xlink:to="loc_srt_RangeMember_019cb55e-0361-7cdd-ac7a-6586fff9abcd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019cb55e-0361-78ca-8ac1-d965d2a29e1c" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019cb55e-0361-7cdd-ac7a-6586fff9abcd" xlink:to="loc_srt_RangeMember_019cb55e-0361-78ca-8ac1-d965d2a29e1c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019cb55e-0361-757f-b206-d7c19a5a474d" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019cb55e-0361-78ca-8ac1-d965d2a29e1c" xlink:to="loc_srt_MinimumMember_019cb55e-0361-757f-b206-d7c19a5a474d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019cb55e-0361-707b-be5c-af488bce4345" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019cb55e-0361-78ca-8ac1-d965d2a29e1c" xlink:to="loc_srt_MaximumMember_019cb55e-0361-707b-be5c-af488bce4345" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_019cb55e-0361-75fe-9867-5bb251067d03" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019cb55e-0361-75f3-81c9-3f8140883e17" xlink:to="loc_us-gaap_LesseeOperatingLeaseRemainingLeaseTerm_019cb55e-0361-75fe-9867-5bb251067d03" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SubleasesRemainingLeaseTerm_019cb55e-0361-7dab-9e66-b34ed3085ffc" xlink:href="fsly-20260331.xsd#fsly_SubleasesRemainingLeaseTerm"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019cb55e-0361-75f3-81c9-3f8140883e17" xlink:to="loc_fsly_SubleasesRemainingLeaseTerm_019cb55e-0361-7dab-9e66-b34ed3085ffc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019cb55e-0361-75f8-82d3-7cd507513779" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019cb55e-0361-75f3-81c9-3f8140883e17" xlink:to="loc_us-gaap_UnrecordedUnconditionalPurchaseObligationBalanceSheetAmount_019cb55e-0361-75f8-82d3-7cd507513779" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_019cb55e-0361-7ba3-9430-c9c74c28c139" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LesseeLeaseDescriptionLineItems_019cb55e-0361-75f3-81c9-3f8140883e17" xlink:to="loc_us-gaap_LesseeOperatingLeaseLeaseNotYetCommencedTermOfContract1_019cb55e-0361-7ba3-9430-c9c74c28c139" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/GoodwillandIntangibleAssetsScheduleofIntangibleAssetsDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-703f-a5b4-ba0dcc5959df" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019cb55e-0361-731b-9f0c-a7df0d51482e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019cb55e-0361-703f-a5b4-ba0dcc5959df" xlink:to="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019cb55e-0361-731b-9f0c-a7df0d51482e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019cb55e-0361-7aa1-83ca-ca37e5565e45" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfFiniteLivedIntangibleAssetsTable_019cb55e-0361-731b-9f0c-a7df0d51482e" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019cb55e-0361-7aa1-83ca-ca37e5565e45" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7aa1-83ca-ca37e5565e45_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019cb55e-0361-7aa1-83ca-ca37e5565e45" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7aa1-83ca-ca37e5565e45_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7ea2-86ab-59c3de26c822" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsByMajorClassAxis_019cb55e-0361-7aa1-83ca-ca37e5565e45" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7ea2-86ab-59c3de26c822" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CustomerRelationshipsMember_019cb55e-0361-74a6-a32d-6b48482b67c3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CustomerRelationshipsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7ea2-86ab-59c3de26c822" xlink:to="loc_us-gaap_CustomerRelationshipsMember_019cb55e-0361-74a6-a32d-6b48482b67c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DevelopedTechnologyRightsMember_019cb55e-0361-7b9f-b5e6-06bf3ac24604" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DevelopedTechnologyRightsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7ea2-86ab-59c3de26c822" xlink:to="loc_us-gaap_DevelopedTechnologyRightsMember_019cb55e-0361-7b9f-b5e6-06bf3ac24604" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_TradeNamesMember_019cb55e-0361-71b1-8ae5-25cf75c96743" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_TradeNamesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7ea2-86ab-59c3de26c822" xlink:to="loc_us-gaap_TradeNamesMember_019cb55e-0361-71b1-8ae5-25cf75c96743" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_InternetProtocolAddressesMember_019cb55e-0361-7565-945b-7d0b69209ed3" xlink:href="fsly-20260331.xsd#fsly_InternetProtocolAddressesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsMajorClassNameDomain_019cb55e-0361-7ea2-86ab-59c3de26c822" xlink:to="loc_fsly_InternetProtocolAddressesMember_019cb55e-0361-7565-945b-7d0b69209ed3" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019cb55e-0361-7b14-9f0a-a4e3711b8152" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019cb55e-0361-703f-a5b4-ba0dcc5959df" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsGross_019cb55e-0361-7b14-9f0a-a4e3711b8152" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019cb55e-0361-7553-be66-8caadb0aab5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019cb55e-0361-703f-a5b4-ba0dcc5959df" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsAccumulatedAmortization_019cb55e-0361-7553-be66-8caadb0aab5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019cb55e-0361-799d-99da-bd90004996ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_FiniteLivedIntangibleAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FiniteLivedIntangibleAssetsLineItems_019cb55e-0361-703f-a5b4-ba0dcc5959df" xlink:to="loc_us-gaap_FiniteLivedIntangibleAssetsNet_019cb55e-0361-799d-99da-bd90004996ec" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsSeniorSecuredCreditFacilitiesCreditAgreementNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7976-9388-27b401f77158" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7976-9388-27b401f77158" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7945-93e0-65104d1e8286" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7976-9388-27b401f77158" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7945-93e0-65104d1e8286" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7945-93e0-65104d1e8286_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7945-93e0-65104d1e8286" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7945-93e0-65104d1e8286_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7f59-87b2-45037cb1c7d8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7945-93e0-65104d1e8286" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7f59-87b2-45037cb1c7d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SeniorSecuredCreditFacilitiesAgreementMember_019cfb90-5931-712f-a38b-abcd0b4e179a" xlink:href="fsly-20260331.xsd#fsly_SeniorSecuredCreditFacilitiesAgreementMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7f59-87b2-45037cb1c7d8" xlink:to="loc_fsly_SeniorSecuredCreditFacilitiesAgreementMember_019cfb90-5931-712f-a38b-abcd0b4e179a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019cfb90-5931-747d-b4ef-35518fccbb75" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7976-9388-27b401f77158" xlink:to="loc_srt_RangeAxis_019cfb90-5931-747d-b4ef-35518fccbb75" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019cfb90-5931-747d-b4ef-35518fccbb75_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019cfb90-5931-747d-b4ef-35518fccbb75" xlink:to="loc_srt_RangeMember_019cfb90-5931-747d-b4ef-35518fccbb75_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019cfb90-5931-70ea-a96c-6bbdb7474370" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019cfb90-5931-747d-b4ef-35518fccbb75" xlink:to="loc_srt_RangeMember_019cfb90-5931-70ea-a96c-6bbdb7474370" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019cfb90-5931-7e98-9622-452aaf8af8b4" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019cfb90-5931-70ea-a96c-6bbdb7474370" xlink:to="loc_srt_MinimumMember_019cfb90-5931-7e98-9622-452aaf8af8b4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019cfb90-5931-75f4-9b70-dd02a357d592" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019cfb90-5931-70ea-a96c-6bbdb7474370" xlink:to="loc_srt_MaximumMember_019cfb90-5931-75f4-9b70-dd02a357d592" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateAxis_019cfb90-5931-70a7-81c9-fd644637d8f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableRateAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7976-9388-27b401f77158" xlink:to="loc_us-gaap_VariableRateAxis_019cfb90-5931-70a7-81c9-fd644637d8f7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019cfb90-5931-70a7-81c9-fd644637d8f7_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VariableRateAxis_019cfb90-5931-70a7-81c9-fd644637d8f7" xlink:to="loc_us-gaap_VariableRateDomain_019cfb90-5931-70a7-81c9-fd644637d8f7_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VariableRateDomain_019cfb90-5931-7db7-8d90-4b81fdd1c202" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VariableRateDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VariableRateAxis_019cfb90-5931-70a7-81c9-fd644637d8f7" xlink:to="loc_us-gaap_VariableRateDomain_019cfb90-5931-7db7-8d90-4b81fdd1c202" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BaseRateMember_019cfb90-5931-7eb9-9db6-48ca8f8096eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_BaseRateMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019cfb90-5931-7db7-8d90-4b81fdd1c202" xlink:to="loc_us-gaap_BaseRateMember_019cfb90-5931-7eb9-9db6-48ca8f8096eb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_019cfb90-5931-72e8-9a0c-5da50fbe647b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SecuredOvernightFinancingRateSofrMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VariableRateDomain_019cfb90-5931-7db7-8d90-4b81fdd1c202" xlink:to="loc_us-gaap_SecuredOvernightFinancingRateSofrMember_019cfb90-5931-72e8-9a0c-5da50fbe647b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019cfb90-5931-780a-b681-868371c74a84" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_019cfb90-5931-780a-b681-868371c74a84" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentCovenantNetLiquidityThreshold_019cfb90-5931-7267-b3c1-0d4399d81c4d" xlink:href="fsly-20260331.xsd#fsly_DebtInstrumentCovenantNetLiquidityThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_fsly_DebtInstrumentCovenantNetLiquidityThreshold_019cfb90-5931-7267-b3c1-0d4399d81c4d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentCovenantConvertibleDebtOutstandingThreshold_019cfb90-5931-72ac-82f4-735adb233d2f" xlink:href="fsly-20260331.xsd#fsly_DebtInstrumentCovenantConvertibleDebtOutstandingThreshold"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_fsly_DebtInstrumentCovenantConvertibleDebtOutstandingThreshold_019cfb90-5931-72ac-82f4-735adb233d2f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_019cfb90-5931-7f71-8ce3-762268417476" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DeferredFinanceCostsGross"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_019cfb90-5931-7f71-8ce3-762268417476" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019cfb90-5931-71fe-bd6a-ccc2f6dca81f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentBasisSpreadOnVariableRate1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_DebtInstrumentBasisSpreadOnVariableRate1_019cfb90-5931-71fe-bd6a-ccc2f6dca81f" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_019cfb90-5931-7896-9937-71dc7b83fe9a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_LineOfCreditFacilityUnusedCapacityCommitmentFeePercentage_019cfb90-5931-7896-9937-71dc7b83fe9a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumRequirement_019cfb90-5931-7a80-a3be-905417b73118" xlink:href="fsly-20260331.xsd#fsly_DebtCovenantAdjustedQuickRatioMinimumRequirement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumRequirement_019cfb90-5931-7a80-a3be-905417b73118" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtCovenantSpringingRevenueGrowthQuarterlyBasisMinimum_019cfb90-5931-7b1c-abc3-a56139e0053e" xlink:href="fsly-20260331.xsd#fsly_DebtCovenantSpringingRevenueGrowthQuarterlyBasisMinimum"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_fsly_DebtCovenantSpringingRevenueGrowthQuarterlyBasisMinimum_019cfb90-5931-7b1c-abc3-a56139e0053e" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumThresholdToTriggerRevenueGrowthCovenantRequirement_019cfb90-5931-7769-9f27-4067f973c84b" xlink:href="fsly-20260331.xsd#fsly_DebtCovenantAdjustedQuickRatioMinimumThresholdToTriggerRevenueGrowthCovenantRequirement"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_fsly_DebtCovenantAdjustedQuickRatioMinimumThresholdToTriggerRevenueGrowthCovenantRequirement_019cfb90-5931-7769-9f27-4067f973c84b" xlink:type="arc" order="8"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromLinesOfCredit_019cfb90-5931-74c0-b2c7-797fb2516699" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromLinesOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_ProceedsFromLinesOfCredit_019cfb90-5931-74c0-b2c7-797fb2516699" xlink:type="arc" order="9"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LineOfCredit_019cfb90-5931-7f56-9d9c-b924d18c03ec" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LineOfCredit"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7717-8c46-fdf724b3b80c" xlink:to="loc_us-gaap_LineOfCredit_019cfb90-5931-7f56-9d9c-b924d18c03ec" xlink:type="arc" order="10"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsConvertibleSeniorNotesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dd4-9217-5aa59118edfd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dd4-9217-5aa59118edfd" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-746b-95f2-5e2a99b9f776" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dd4-9217-5aa59118edfd" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-746b-95f2-5e2a99b9f776" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-746b-95f2-5e2a99b9f776_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-746b-95f2-5e2a99b9f776" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-746b-95f2-5e2a99b9f776_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7b13-a15f-29f7b22263cf" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-746b-95f2-5e2a99b9f776" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7b13-a15f-29f7b22263cf" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2026ConvertibleNotesMember_019cfb90-5931-7c81-8d51-fe94d64d658b" xlink:href="fsly-20260331.xsd#fsly_A2026ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7b13-a15f-29f7b22263cf" xlink:to="loc_fsly_A2026ConvertibleNotesMember_019cfb90-5931-7c81-8d51-fe94d64d658b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-7475-9de0-3ecc633d9b39" xlink:href="fsly-20260331.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7b13-a15f-29f7b22263cf" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-7475-9de0-3ecc633d9b39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-7b9e-9d27-2d07792063fd" xlink:href="fsly-20260331.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7b13-a15f-29f7b22263cf" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-7b9e-9d27-2d07792063fd" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f25-a229-ad1c711be71a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dd4-9217-5aa59118edfd" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f25-a229-ad1c711be71a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7f25-a229-ad1c711be71a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f25-a229-ad1c711be71a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7f25-a229-ad1c711be71a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-737b-9ee1-81d996f28db7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f25-a229-ad1c711be71a" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-737b-9ee1-81d996f28db7" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-7286-8e0e-27a5feeead21" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-737b-9ee1-81d996f28db7" xlink:to="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-7286-8e0e-27a5feeead21" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019cfb90-5931-7a32-b729-2300847763ef" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019cfb90-5931-7a32-b729-2300847763ef" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019cfb90-5931-7cbb-81eb-ac5900e881b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019cfb90-5931-7cbb-81eb-ac5900e881b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentFaceAmountAdditionalPrincipalIssuable_019cfb90-5931-7b3a-98fd-4685f1937a6a" xlink:href="fsly-20260331.xsd#fsly_DebtInstrumentFaceAmountAdditionalPrincipalIssuable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_fsly_DebtInstrumentFaceAmountAdditionalPrincipalIssuable_019cfb90-5931-7b3a-98fd-4685f1937a6a" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromConvertibleDebt_019cfb90-5931-7c99-9fa6-c19a6a1fe71f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ProceedsFromConvertibleDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_ProceedsFromConvertibleDebt_019cfb90-5931-7c99-9fa6-c19a6a1fe71f" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_019cfb90-5931-70f2-b8de-94e37bd9dcce" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentRepurchasedFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_DebtInstrumentRepurchasedFaceAmount_019cfb90-5931-70f2-b8de-94e37bd9dcce" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRepurchaseAmount_019cfb90-5931-7787-b066-491c91661e90" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentRepurchaseAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_DebtInstrumentRepurchaseAmount_019cfb90-5931-7787-b066-491c91661e90" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentRepurchaseTransactionCosts_019cfb90-5931-722a-9bcc-281cf7b7a7b1" xlink:href="fsly-20260331.xsd#fsly_DebtInstrumentRepurchaseTransactionCosts"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_fsly_DebtInstrumentRepurchaseTransactionCosts_019cfb90-5931-722a-9bcc-281cf7b7a7b1" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ExtinguishmentOfDebtAmount_019cfb90-5931-70a9-a692-7586502813dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ExtinguishmentOfDebtAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_ExtinguishmentOfDebtAmount_019cfb90-5931-70a9-a692-7586502813dc" xlink:type="arc" order="7"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019cfb90-5931-7ec1-b963-b30031468e4d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GainsLossesOnExtinguishmentOfDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a78-9fc9-a302fc3d8d97" xlink:to="loc_us-gaap_GainsLossesOnExtinguishmentOfDebt_019cfb90-5931-7ec1-b963-b30031468e4d" xlink:type="arc" order="8"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsScheduleofConvertibleSeniorNotesDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-7662-a56d-62bd75f9c82a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7b72-b9e2-4e80357a995e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7662-a56d-62bd75f9c82a" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7b72-b9e2-4e80357a995e" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7ac5-b4ae-03036673b66e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7b72-b9e2-4e80357a995e" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7ac5-b4ae-03036673b66e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7ac5-b4ae-03036673b66e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7ac5-b4ae-03036673b66e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7ac5-b4ae-03036673b66e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7437-bd88-598914da34e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7ac5-b4ae-03036673b66e" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7437-bd88-598914da34e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-7602-8f6c-5b0db3b83bcc" xlink:href="fsly-20260331.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7437-bd88-598914da34e1" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-7602-8f6c-5b0db3b83bcc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-725c-8646-86ae8f2bde7c" xlink:href="fsly-20260331.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7437-bd88-598914da34e1" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-725c-8646-86ae8f2bde7c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-77ac-948c-04155203933f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7b72-b9e2-4e80357a995e" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-77ac-948c-04155203933f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-77ac-948c-04155203933f_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-77ac-948c-04155203933f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-77ac-948c-04155203933f_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7253-8e0f-2a9b59cd9dd2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-77ac-948c-04155203933f" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7253-8e0f-2a9b59cd9dd2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-729a-a679-103640f46cdb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7253-8e0f-2a9b59cd9dd2" xlink:to="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-729a-a679-103640f46cdb" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_019cfb90-5931-71dd-8dd2-d67dff46285f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentFaceAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7662-a56d-62bd75f9c82a" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_019cfb90-5931-71dd-8dd2-d67dff46285f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019cfb90-5931-7997-bda7-c60ba45ef632" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7662-a56d-62bd75f9c82a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_019cfb90-5931-7997-bda7-c60ba45ef632" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_019cfb90-5931-7eae-bfcb-a8b62449db15" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentInterestRateEffectivePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7662-a56d-62bd75f9c82a" xlink:to="loc_us-gaap_DebtInstrumentInterestRateEffectivePercentage_019cfb90-5931-7eae-bfcb-a8b62449db15" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsRedemptionRightsoftheNotesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7044-bc13-c4f71bddf456" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7044-bc13-c4f71bddf456" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7168-9c6e-2b4017bd26b6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7044-bc13-c4f71bddf456" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7168-9c6e-2b4017bd26b6" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7168-9c6e-2b4017bd26b6_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7168-9c6e-2b4017bd26b6" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7168-9c6e-2b4017bd26b6_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-794a-b8f0-168a30c22e95" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7168-9c6e-2b4017bd26b6" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-794a-b8f0-168a30c22e95" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-71eb-83ac-0581e6c3692b" xlink:href="fsly-20260331.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-794a-b8f0-168a30c22e95" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-71eb-83ac-0581e6c3692b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f81-9a91-012a1820450c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7044-bc13-c4f71bddf456" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f81-9a91-012a1820450c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7f81-9a91-012a1820450c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f81-9a91-012a1820450c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7f81-9a91-012a1820450c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7678-954f-ff5cad737925" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7f81-9a91-012a1820450c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7678-954f-ff5cad737925" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-78ce-ac95-8bfc67a18cb2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7678-954f-ff5cad737925" xlink:to="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-78ce-ac95-8bfc67a18cb2" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019cfb90-5931-7cb8-bba0-e9bb1bd6d880" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019cfb90-5931-7cb8-bba0-e9bb1bd6d880" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019cfb90-5931-72fc-b8a1-73b186898841" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019cfb90-5931-72fc-b8a1-73b186898841" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019cfb90-5931-708b-acb5-3132afe0a7c7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019cfb90-5931-708b-acb5-3132afe0a7c7" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtInstrumentConvertiblePeriodOfNoticeRequired_019cfb90-5931-71b6-bfcc-faaadd57e5f5" xlink:href="fsly-20260331.xsd#fsly_DebtInstrumentConvertiblePeriodOfNoticeRequired"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:to="loc_fsly_DebtInstrumentConvertiblePeriodOfNoticeRequired_019cfb90-5931-71b6-bfcc-faaadd57e5f5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_019cfb90-5931-7d4c-8ce6-7ccb2a83d236" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentRedemptionPricePercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-71da-8392-bb9fba1fcc25" xlink:to="loc_us-gaap_DebtInstrumentRedemptionPricePercentage_019cfb90-5931-7d4c-8ce6-7ccb2a83d236" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsConversionRightsoftheNotesNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-701f-9ae2-d7579b1e3f51" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7a26-b9e9-1b55530f7291" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-701f-9ae2-d7579b1e3f51" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7a26-b9e9-1b55530f7291" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019cfb90-5931-7297-8686-b97b1c1fb5fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtConversionByUniqueDescriptionAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7a26-b9e9-1b55530f7291" xlink:to="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019cfb90-5931-7297-8686-b97b1c1fb5fc" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionNameDomain_019cfb90-5931-7297-8686-b97b1c1fb5fc_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtConversionNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019cfb90-5931-7297-8686-b97b1c1fb5fc" xlink:to="loc_us-gaap_DebtConversionNameDomain_019cfb90-5931-7297-8686-b97b1c1fb5fc_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtConversionNameDomain_019cfb90-5931-72d3-bdea-33bbd1a2406d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtConversionNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtConversionByUniqueDescriptionAxis_019cfb90-5931-7297-8686-b97b1c1fb5fc" xlink:to="loc_us-gaap_DebtConversionNameDomain_019cfb90-5931-72d3-bdea-33bbd1a2406d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtConversionScenarioOneMember_019cfb90-5931-7a99-b36c-ca0fa78defad" xlink:href="fsly-20260331.xsd#fsly_DebtConversionScenarioOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtConversionNameDomain_019cfb90-5931-72d3-bdea-33bbd1a2406d" xlink:to="loc_fsly_DebtConversionScenarioOneMember_019cfb90-5931-7a99-b36c-ca0fa78defad" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DebtConversionScenarioTwoMember_019cfb90-5931-71ce-8408-b0b289196509" xlink:href="fsly-20260331.xsd#fsly_DebtConversionScenarioTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtConversionNameDomain_019cfb90-5931-72d3-bdea-33bbd1a2406d" xlink:to="loc_fsly_DebtConversionScenarioTwoMember_019cfb90-5931-71ce-8408-b0b289196509" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-76f0-a324-9d6acc085980" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7a26-b9e9-1b55530f7291" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-76f0-a324-9d6acc085980" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-76f0-a324-9d6acc085980_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-76f0-a324-9d6acc085980" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-76f0-a324-9d6acc085980_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7548-a484-2fb883154e2e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-76f0-a324-9d6acc085980" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7548-a484-2fb883154e2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2026ConvertibleNotes2028ConvertibleNotesAnd2030ConvertibleNotesMember_019cfb90-5931-7e15-9d19-672d7be152f1" xlink:href="fsly-20260331.xsd#fsly_A2026ConvertibleNotes2028ConvertibleNotesAnd2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7548-a484-2fb883154e2e" xlink:to="loc_fsly_A2026ConvertibleNotes2028ConvertibleNotesAnd2030ConvertibleNotesMember_019cfb90-5931-7e15-9d19-672d7be152f1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7757-ae92-9acb60b60833" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7a26-b9e9-1b55530f7291" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7757-ae92-9acb60b60833" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7757-ae92-9acb60b60833_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7757-ae92-9acb60b60833" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7757-ae92-9acb60b60833_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7385-993a-d69f73746112" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7757-ae92-9acb60b60833" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7385-993a-d69f73746112" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-7a80-a2c9-756c557438d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7385-993a-d69f73746112" xlink:to="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-7a80-a2c9-756c557438d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019cfb90-5931-7483-a16f-3831cd78c10f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdTradingDays"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-701f-9ae2-d7579b1e3f51" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdTradingDays_019cfb90-5931-7483-a16f-3831cd78c10f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019cfb90-5931-7ff7-a08f-59aea06ea233" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-701f-9ae2-d7579b1e3f51" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdConsecutiveTradingDays1_019cfb90-5931-7ff7-a08f-59aea06ea233" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019cfb90-5931-7323-bd4d-3e6912361ebd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-701f-9ae2-d7579b1e3f51" xlink:to="loc_us-gaap_DebtInstrumentConvertibleThresholdPercentageOfStockPriceTrigger_019cfb90-5931-7323-bd4d-3e6912361ebd" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsScheduleofConversionRightsofNotesDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-796c-955f-d33bd6df179f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dc4-a6d7-1e4a1a9e0855" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-796c-955f-d33bd6df179f" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dc4-a6d7-1e4a1a9e0855" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7820-a3ad-beb9bbbfec72" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dc4-a6d7-1e4a1a9e0855" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7820-a3ad-beb9bbbfec72" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7820-a3ad-beb9bbbfec72_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7820-a3ad-beb9bbbfec72" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7820-a3ad-beb9bbbfec72_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7fdc-89fb-ad43f2f93b1b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7820-a3ad-beb9bbbfec72" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7fdc-89fb-ad43f2f93b1b" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-74a4-a8fc-ec7e624bc83d" xlink:href="fsly-20260331.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7fdc-89fb-ad43f2f93b1b" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-74a4-a8fc-ec7e624bc83d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-793a-a784-ea6fe4850b66" xlink:href="fsly-20260331.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7fdc-89fb-ad43f2f93b1b" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-793a-a784-ea6fe4850b66" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7745-8f18-84439756c497" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7dc4-a6d7-1e4a1a9e0855" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7745-8f18-84439756c497" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7745-8f18-84439756c497_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7745-8f18-84439756c497" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7745-8f18-84439756c497_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-725a-8082-a75d779c44a2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7745-8f18-84439756c497" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-725a-8082-a75d779c44a2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-7b47-ba1c-b76611bdc1d7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-725a-8082-a75d779c44a2" xlink:to="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-7b47-ba1c-b76611bdc1d7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_019cfb90-5931-7bdb-9374-c7afb07057d4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleConversionRatio1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-796c-955f-d33bd6df179f" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionRatio1_019cfb90-5931-7bdb-9374-c7afb07057d4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_019cfb90-5931-71dc-81bf-3de5e87e6c81" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentConvertibleConversionPrice1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-796c-955f-d33bd6df179f" xlink:to="loc_us-gaap_DebtInstrumentConvertibleConversionPrice1_019cfb90-5931-71dc-81bf-3de5e87e6c81" xlink:type="arc" order="1"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsScheduleofCarryingValueofNotesDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-78fa-af97-ac6460f25d4b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-729f-88a8-0de8ee391103" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-78fa-af97-ac6460f25d4b" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-729f-88a8-0de8ee391103" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7627-9754-77ebe118694a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-729f-88a8-0de8ee391103" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7627-9754-77ebe118694a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7627-9754-77ebe118694a_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7627-9754-77ebe118694a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7627-9754-77ebe118694a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7c9a-b8b8-f822700d4a78" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7627-9754-77ebe118694a" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7c9a-b8b8-f822700d4a78" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-7d66-af58-566ac3cbab74" xlink:href="fsly-20260331.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7c9a-b8b8-f822700d4a78" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-7d66-af58-566ac3cbab74" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-7a50-a528-20189572e0d9" xlink:href="fsly-20260331.xsd#fsly_A2028ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7c9a-b8b8-f822700d4a78" xlink:to="loc_fsly_A2028ConvertibleNotesMember_019cfb90-5931-7a50-a528-20189572e0d9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2026ConvertibleNotesMember_019cfb90-5931-7943-948e-99022863b6d2" xlink:href="fsly-20260331.xsd#fsly_A2026ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7c9a-b8b8-f822700d4a78" xlink:to="loc_fsly_A2026ConvertibleNotesMember_019cfb90-5931-7943-948e-99022863b6d2" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7e69-9650-95804481c10c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-729f-88a8-0de8ee391103" xlink:to="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7e69-9650-95804481c10c" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7e69-9650-95804481c10c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7e69-9650-95804481c10c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-7e69-9650-95804481c10c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-707d-9060-65de1ebf1e39" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongtermDebtTypeDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_LongtermDebtTypeAxis_019cfb90-5931-7e69-9650-95804481c10c" xlink:to="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-707d-9060-65de1ebf1e39" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-75d2-8b48-8ec3a9fe312f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongtermDebtTypeDomain_019cfb90-5931-707d-9060-65de1ebf1e39" xlink:to="loc_us-gaap_ConvertibleDebtMember_019cfb90-5931-75d2-8b48-8ec3a9fe312f" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentCarryingAmount_019cfb90-5931-72c9-a5d8-58e06189c103" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentCarryingAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-78fa-af97-ac6460f25d4b" xlink:to="loc_us-gaap_DebtInstrumentCarryingAmount_019cfb90-5931-72c9-a5d8-58e06189c103" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019cfb90-5931-70c1-a7b3-315d95ac8c5d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentUnamortizedDiscount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-78fa-af97-ac6460f25d4b" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscount_019cfb90-5931-70c1-a7b3-315d95ac8c5d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019cfb90-5931-7c8d-93a1-3104971bf818" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermDebt"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-78fa-af97-ac6460f25d4b" xlink:to="loc_us-gaap_LongTermDebt_019cfb90-5931-7c8d-93a1-3104971bf818" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/DebtInstrumentsCappedCallsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cfb90-5931-7a21-ba76-dd5cbd40385f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7104-bf29-69c3034f5347" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a21-ba76-dd5cbd40385f" xlink:to="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7104-bf29-69c3034f5347" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7dff-9616-9eab515016e1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_019cfb90-5931-7104-bf29-69c3034f5347" xlink:to="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7dff-9616-9eab515016e1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7dff-9616-9eab515016e1_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7dff-9616-9eab515016e1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-7dff-9616-9eab515016e1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-79f2-a079-110852031f28" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_DebtInstrumentNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_019cfb90-5931-7dff-9616-9eab515016e1" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-79f2-a079-110852031f28" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-7681-8d15-d7c71fad4e0c" xlink:href="fsly-20260331.xsd#fsly_A2030ConvertibleNotesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_019cfb90-5931-79f2-a079-110852031f28" xlink:to="loc_fsly_A2030ConvertibleNotesMember_019cfb90-5931-7681-8d15-d7c71fad4e0c" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DerivativeInitialStrikePrice_019cfb90-5931-7b00-9a25-1f2ad28548a7" xlink:href="fsly-20260331.xsd#fsly_DerivativeInitialStrikePrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a21-ba76-dd5cbd40385f" xlink:to="loc_fsly_DerivativeInitialStrikePrice_019cfb90-5931-7b00-9a25-1f2ad28548a7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_DerivativeInitialCapPrice_019cfb90-5931-72fb-8185-388acc37a2f4" xlink:href="fsly-20260331.xsd#fsly_DerivativeInitialCapPrice"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a21-ba76-dd5cbd40385f" xlink:to="loc_fsly_DerivativeInitialCapPrice_019cfb90-5931-72fb-8185-388acc37a2f4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_AdjustmentsToAdditionalPaidInCapitalPurchasesOfCappedCalls_019cfb90-5931-7c31-97d9-b69968dc966e" xlink:href="fsly-20260331.xsd#fsly_AdjustmentsToAdditionalPaidInCapitalPurchasesOfCappedCalls"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_019cfb90-5931-7a21-ba76-dd5cbd40385f" xlink:to="loc_fsly_AdjustmentsToAdditionalPaidInCapitalPurchasesOfCappedCalls_019cfb90-5931-7c31-97d9-b69968dc966e" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/CommitmentsandContingenciesScheduleofPurchaseCommitmentsDetails" xlink:type="simple" xlink:href="fsly-20260331.xsd#CommitmentsandContingenciesScheduleofPurchaseCommitmentsDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/CommitmentsandContingenciesScheduleofPurchaseCommitmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermPurchaseCommitmentLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermPurchaseCommitmentTable_019cb55e-0361-79f9-8f23-68659c15c8f1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_LongTermPurchaseCommitmentTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_LongTermPurchaseCommitmentTable_019cb55e-0361-79f9-8f23-68659c15c8f1" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_019cb55e-0361-79da-9dc8-2fa732b3c5dd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentTable_019cb55e-0361-79f9-8f23-68659c15c8f1" xlink:to="loc_us-gaap_RecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_019cb55e-0361-79da-9dc8-2fa732b3c5dd" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain_019cb55e-0361-79da-9dc8-2fa732b3c5dd_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_RecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_019cb55e-0361-79da-9dc8-2fa732b3c5dd" xlink:to="loc_us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain_019cb55e-0361-79da-9dc8-2fa732b3c5dd_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain_019cb55e-0361-7140-8439-8cf70dbac29c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_RecordedUnconditionalPurchaseObligationByCategoryOfItemPurchasedAxis_019cb55e-0361-79da-9dc8-2fa732b3c5dd" xlink:to="loc_us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain_019cb55e-0361-7140-8439-8cf70dbac29c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CostOfRevenueCommitmentMember_019cb55e-0361-723d-8d9f-ead55348b4cc" xlink:href="fsly-20260331.xsd#fsly_CostOfRevenueCommitmentMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain_019cb55e-0361-7140-8439-8cf70dbac29c" xlink:to="loc_fsly_CostOfRevenueCommitmentMember_019cb55e-0361-723d-8d9f-ead55348b4cc" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_OperatingExpenseCommitmentsMember_019cb55e-0361-7b4e-9134-ba0ec4988015" xlink:href="fsly-20260331.xsd#fsly_OperatingExpenseCommitmentsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RecordedUnconditionalPurchaseObligationCategoryDomain_019cb55e-0361-7140-8439-8cf70dbac29c" xlink:to="loc_fsly_OperatingExpenseCommitmentsMember_019cb55e-0361-7b4e-9134-ba0ec4988015" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_019cb55e-0361-714b-94b5-28a63c940ce6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_PurchaseObligationFutureMinimumPaymentsRemainderOfFiscalYear_019cb55e-0361-714b-94b5-28a63c940ce6" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_019cb55e-0361-7080-bac8-4d858a91cae4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligationDueInNextTwelveMonths"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_PurchaseObligationDueInNextTwelveMonths_019cb55e-0361-7080-bac8-4d858a91cae4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInSecondYear_019cb55e-0361-7f22-b1d9-a2fe7a4fe34f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligationDueInSecondYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_PurchaseObligationDueInSecondYear_019cb55e-0361-7f22-b1d9-a2fe7a4fe34f" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInThirdYear_019cb55e-0361-7a2d-8e23-4ec2078b06ed" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligationDueInThirdYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_PurchaseObligationDueInThirdYear_019cb55e-0361-7a2d-8e23-4ec2078b06ed" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligationDueInFourthYear_019cb55e-0361-754f-b256-fac66afb0ced" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligationDueInFourthYear"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_PurchaseObligationDueInFourthYear_019cb55e-0361-754f-b256-fac66afb0ced" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PurchaseObligationToBePaidAfterYearFour_019cb55e-0361-71f3-9e81-ac783460ea5a" xlink:href="fsly-20260331.xsd#fsly_PurchaseObligationToBePaidAfterYearFour"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_fsly_PurchaseObligationToBePaidAfterYearFour_019cb55e-0361-71f3-9e81-ac783460ea5a" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PurchaseObligation_019cb55e-0361-7eba-ad40-7f43f120cafa" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PurchaseObligation"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_LongTermPurchaseCommitmentLineItems_019cb55e-0361-7c6a-9968-2fede2d1b604" xlink:to="loc_us-gaap_PurchaseObligation_019cb55e-0361-7eba-ad40-7f43f120cafa" xlink:type="arc" order="6"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityEquityIncentivePlansNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0361-7d94-9ca5-262f8382bbda" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0361-7d94-9ca5-262f8382bbda" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_019cb55e-0361-724d-83c4-338bc7b3b5eb" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0361-7d94-9ca5-262f8382bbda" xlink:to="loc_us-gaap_PlanNameAxis_019cb55e-0361-724d-83c4-338bc7b3b5eb" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019cb55e-0361-724d-83c4-338bc7b3b5eb_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_019cb55e-0361-724d-83c4-338bc7b3b5eb" xlink:to="loc_us-gaap_PlanNameDomain_019cb55e-0361-724d-83c4-338bc7b3b5eb_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019cb55e-0361-726b-9e88-7827acfa1f8f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_019cb55e-0361-724d-83c4-338bc7b3b5eb" xlink:to="loc_us-gaap_PlanNameDomain_019cb55e-0361-726b-9e88-7827acfa1f8f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SignalSciences2014EquityStockOptionsPlanMember_019cb55e-0361-796b-b51e-613b935d6bc8" xlink:href="fsly-20260331.xsd#fsly_SignalSciences2014EquityStockOptionsPlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019cb55e-0361-726b-9e88-7827acfa1f8f" xlink:to="loc_fsly_SignalSciences2014EquityStockOptionsPlanMember_019cb55e-0361-796b-b51e-613b935d6bc8" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2019EquityIncentivePlanMember_019cb55e-0361-7058-a1de-847a2ef06f82" xlink:href="fsly-20260331.xsd#fsly_A2019EquityIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019cb55e-0361-726b-9e88-7827acfa1f8f" xlink:to="loc_fsly_A2019EquityIncentivePlanMember_019cb55e-0361-7058-a1de-847a2ef06f82" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_A2025EmploymentInducementIncentivePlanMember_019cb55e-0361-7091-9fec-7d84fadad930" xlink:href="fsly-20260331.xsd#fsly_A2025EmploymentInducementIncentivePlanMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019cb55e-0361-726b-9e88-7827acfa1f8f" xlink:to="loc_fsly_A2025EmploymentInducementIncentivePlanMember_019cb55e-0361-7091-9fec-7d84fadad930" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_NumberOfEquityIncentivePlans_019cb55e-0361-7f63-a40e-8b9ced33304d" xlink:href="fsly-20260331.xsd#fsly_NumberOfEquityIncentivePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:to="loc_fsly_NumberOfEquityIncentivePlans_019cb55e-0361-7f63-a40e-8b9ced33304d" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_BusinessCombinationUnvestedStockOptionAssumedShares_019cb55e-0361-7aa5-abfb-602ae228c275" xlink:href="fsly-20260331.xsd#fsly_BusinessCombinationUnvestedStockOptionAssumedShares"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:to="loc_fsly_BusinessCombinationUnvestedStockOptionAssumedShares_019cb55e-0361-7aa5-abfb-602ae228c275" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_019cb55e-0361-7c03-abca-a0674d5e9297" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_019cb55e-0361-7c03-abca-a0674d5e9297" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesIssued_019cb55e-0361-7729-b223-f698977ec949" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesIssued"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:to="loc_us-gaap_CommonStockSharesIssued_019cb55e-0361-7729-b223-f698977ec949" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockSharesOutstanding_019cb55e-0361-7440-969e-726eb17213fc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CommonStockSharesOutstanding"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0361-7b72-989c-2a7ff0438ab4" xlink:to="loc_us-gaap_CommonStockSharesOutstanding_019cb55e-0361-7440-969e-726eb17213fc" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityRestrictedStockUnitsRSUsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0412-7e46-a9a3-a8057ea25113" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7889-b34e-cb2532c5f1e9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7e46-a9a3-a8057ea25113" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7889-b34e-cb2532c5f1e9" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeAxis_019cb55e-0412-73bf-99e4-ea7d3c4975d1" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7889-b34e-cb2532c5f1e9" xlink:to="loc_srt_RangeAxis_019cb55e-0412-73bf-99e4-ea7d3c4975d1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019cb55e-0412-73bf-99e4-ea7d3c4975d1_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_019cb55e-0412-73bf-99e4-ea7d3c4975d1" xlink:to="loc_srt_RangeMember_019cb55e-0412-73bf-99e4-ea7d3c4975d1_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_RangeMember_019cb55e-0412-71b8-8dd7-06d8e0d267f8" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_RangeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_019cb55e-0412-73bf-99e4-ea7d3c4975d1" xlink:to="loc_srt_RangeMember_019cb55e-0412-71b8-8dd7-06d8e0d267f8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MinimumMember_019cb55e-0412-770a-97e9-4a0a6dc8cdf3" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MinimumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019cb55e-0412-71b8-8dd7-06d8e0d267f8" xlink:to="loc_srt_MinimumMember_019cb55e-0412-770a-97e9-4a0a6dc8cdf3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_MaximumMember_019cb55e-0412-79a5-a48e-8510442a3fc3" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_MaximumMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_019cb55e-0412-71b8-8dd7-06d8e0d267f8" xlink:to="loc_srt_MaximumMember_019cb55e-0412-79a5-a48e-8510442a3fc3" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7387-8f5c-47172ce7b041" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7889-b34e-cb2532c5f1e9" xlink:to="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7387-8f5c-47172ce7b041" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7387-8f5c-47172ce7b041_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7387-8f5c-47172ce7b041" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7387-8f5c-47172ce7b041_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-744e-87f5-f7cbdb7c7701" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7387-8f5c-47172ce7b041" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-744e-87f5-f7cbdb7c7701" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019cb55e-0412-7975-92fb-e72bb2e74ec0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-744e-87f5-f7cbdb7c7701" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019cb55e-0412-7975-92fb-e72bb2e74ec0" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingAxis_019cb55e-0412-7716-9cc3-9afb56b26b1e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VestingAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7889-b34e-cb2532c5f1e9" xlink:to="loc_us-gaap_VestingAxis_019cb55e-0412-7716-9cc3-9afb56b26b1e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingDomain_019cb55e-0412-7716-9cc3-9afb56b26b1e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VestingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_VestingAxis_019cb55e-0412-7716-9cc3-9afb56b26b1e" xlink:to="loc_us-gaap_VestingDomain_019cb55e-0412-7716-9cc3-9afb56b26b1e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_VestingDomain_019cb55e-0412-7a4f-b79e-d2d5d2008d2a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_VestingDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_VestingAxis_019cb55e-0412-7716-9cc3-9afb56b26b1e" xlink:to="loc_us-gaap_VestingDomain_019cb55e-0412-7a4f-b79e-d2d5d2008d2a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_019cb55e-0412-77f4-91a2-6cd25751d2fd" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationAwardTrancheOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_019cb55e-0412-7a4f-b79e-d2d5d2008d2a" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheOneMember_019cb55e-0412-77f4-91a2-6cd25751d2fd" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_019cb55e-0412-7021-82fe-2b36072a85ea" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationAwardTrancheTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_VestingDomain_019cb55e-0412-7a4f-b79e-d2d5d2008d2a" xlink:to="loc_us-gaap_ShareBasedCompensationAwardTrancheTwoMember_019cb55e-0412-7021-82fe-2b36072a85ea" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019cb55e-0412-7338-9071-82a614fc3918" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7e46-a9a3-a8057ea25113" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_019cb55e-0412-7338-9071-82a614fc3918" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_019cb55e-0412-7ab4-add2-a7eaf7a37fc0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7e46-a9a3-a8057ea25113" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardAwardVestingRightsPercentage_019cb55e-0412-7ab4-add2-a7eaf7a37fc0" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7655-96cd-aed155c9040f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7e46-a9a3-a8057ea25113" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7655-96cd-aed155c9040f" xlink:type="arc" order="2"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityScheduleofRSUandPSUActivityDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0412-7aa4-9dee-a0bce2f2cca5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7af3-93e5-6a8a005807ad" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7aa4-9dee-a0bce2f2cca5" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7af3-93e5-6a8a005807ad" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7e66-a1a4-8d10a5019b2e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7af3-93e5-6a8a005807ad" xlink:to="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7e66-a1a4-8d10a5019b2e" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7e66-a1a4-8d10a5019b2e_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7e66-a1a4-8d10a5019b2e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7e66-a1a4-8d10a5019b2e_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7d1e-92f3-24efe612ad9d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7e66-a1a4-8d10a5019b2e" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7d1e-92f3-24efe612ad9d" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019cb55e-0412-752f-a69a-4085ed7660f7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7d1e-92f3-24efe612ad9d" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019cb55e-0412-752f-a69a-4085ed7660f7" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-73cf-8b9f-5230db01d92f" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7d1e-92f3-24efe612ad9d" xlink:to="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-73cf-8b9f-5230db01d92f" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019cb55e-0412-7742-b729-ffc851856c63" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7aa4-9dee-a0bce2f2cca5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019cb55e-0412-7742-b729-ffc851856c63" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019cb55e-0412-7094-b91c-555732984473" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019cb55e-0412-7742-b729-ffc851856c63" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019cb55e-0412-7094-b91c-555732984473" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019cb55e-0412-721e-81f0-82b432aca797" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019cb55e-0412-7742-b729-ffc851856c63" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriod_019cb55e-0412-721e-81f0-82b432aca797" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019cb55e-0412-7b22-9b8d-f8b3c221e4b7" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019cb55e-0412-7742-b729-ffc851856c63" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriod_019cb55e-0412-7b22-9b8d-f8b3c221e4b7" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019cb55e-0412-70a8-a803-048fef289054" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingRollForward_019cb55e-0412-7742-b729-ffc851856c63" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeitedInPeriod_019cb55e-0412-70a8-a803-048fef289054" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber_019cb55e-0412-7850-9086-87a09625f308" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedNumber"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019cb55e-0412-7d48-baad-5a786e1af53c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7aa4-9dee-a0bce2f2cca5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019cb55e-0412-7d48-baad-5a786e1af53c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019cb55e-0412-72b7-b315-dae5c9823c3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019cb55e-0412-7d48-baad-5a786e1af53c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019cb55e-0412-72b7-b315-dae5c9823c3a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019cb55e-0412-727c-8818-850f6f077992" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019cb55e-0412-7d48-baad-5a786e1af53c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsGrantsInPeriodWeightedAverageGrantDateFairValue_019cb55e-0412-727c-8818-850f6f077992" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019cb55e-0412-756a-b9d3-f8123b69f254" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019cb55e-0412-7d48-baad-5a786e1af53c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsVestedInPeriodWeightedAverageGrantDateFairValue_019cb55e-0412-756a-b9d3-f8123b69f254" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019cb55e-0412-7b2e-ba85-ac010ecb9c7a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValueRollForward_019cb55e-0412-7d48-baad-5a786e1af53c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsForfeituresWeightedAverageGrantDateFairValue_019cb55e-0412-7b2e-ba85-ac010ecb9c7a" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue_019cb55e-0412-749c-9bb6-6709818babd6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardEquityInstrumentsOtherThanOptionsNonvestedWeightedAverageGrantDateFairValue"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityPSUsNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0412-71b7-b848-7524e8eedf21" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-767b-9dde-61bdb6d095e3" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-71b7-b848-7524e8eedf21" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-767b-9dde-61bdb6d095e3" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7309-81d7-190a69667035" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-767b-9dde-61bdb6d095e3" xlink:to="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7309-81d7-190a69667035" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7309-81d7-190a69667035_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7309-81d7-190a69667035" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7309-81d7-190a69667035_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-774c-943b-5c0b625d47a1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7309-81d7-190a69667035" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-774c-943b-5c0b625d47a1" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-7188-bda0-da642093645b" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-774c-943b-5c0b625d47a1" xlink:to="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-7188-bda0-da642093645b" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7fdc-b503-a0d4329d2ac1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-71b7-b848-7524e8eedf21" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7fdc-b503-a0d4329d2ac1" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityCompanywideBonusProgramBonusProgramNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.xsd#StockholdersEquityCompanywideBonusProgramBonusProgramNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityCompanywideBonusProgramBonusProgramNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-751b-9341-0b1f4c5dfac0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7a89-ae52-220b29764bd8" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-751b-9341-0b1f4c5dfac0" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7a89-ae52-220b29764bd8" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameAxis_019cb55e-0412-7070-8852-91cbe993f6da" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7a89-ae52-220b29764bd8" xlink:to="loc_us-gaap_PlanNameAxis_019cb55e-0412-7070-8852-91cbe993f6da" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019cb55e-0412-7070-8852-91cbe993f6da_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_PlanNameAxis_019cb55e-0412-7070-8852-91cbe993f6da" xlink:to="loc_us-gaap_PlanNameDomain_019cb55e-0412-7070-8852-91cbe993f6da_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PlanNameDomain_019cb55e-0412-7f66-a5ee-8a1067662b36" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_PlanNameAxis_019cb55e-0412-7070-8852-91cbe993f6da" xlink:to="loc_us-gaap_PlanNameDomain_019cb55e-0412-7f66-a5ee-8a1067662b36" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_CompanyWideBonusProgramMember_019cb55e-0412-75db-a6b6-f1cfcf38dd99" xlink:href="fsly-20260331.xsd#fsly_CompanyWideBonusProgramMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_PlanNameDomain_019cb55e-0412-7f66-a5ee-8a1067662b36" xlink:to="loc_fsly_CompanyWideBonusProgramMember_019cb55e-0412-75db-a6b6-f1cfcf38dd99" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019cb55e-0412-72f4-b6a5-b2542f3f2842" xlink:href="fsly-20260331.xsd#fsly_ShareBasedPaymentArrangementPerformanceTargetAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7a89-ae52-220b29764bd8" xlink:to="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019cb55e-0412-72f4-b6a5-b2542f3f2842" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-72f4-b6a5-b2542f3f2842_default" xlink:href="fsly-20260331.xsd#fsly_ShareBasedPaymentArrangementPerformanceTargetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019cb55e-0412-72f4-b6a5-b2542f3f2842" xlink:to="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-72f4-b6a5-b2542f3f2842_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-7f28-bc97-c3bc482007af" xlink:href="fsly-20260331.xsd#fsly_ShareBasedPaymentArrangementPerformanceTargetDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetAxis_019cb55e-0412-72f4-b6a5-b2542f3f2842" xlink:to="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-7f28-bc97-c3bc482007af" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PerformanceTargetPayoutLevelOneMember_019cb55e-0412-78ea-b8c3-e7bed558b4c3" xlink:href="fsly-20260331.xsd#fsly_PerformanceTargetPayoutLevelOneMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-7f28-bc97-c3bc482007af" xlink:to="loc_fsly_PerformanceTargetPayoutLevelOneMember_019cb55e-0412-78ea-b8c3-e7bed558b4c3" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PerformanceTargetPayoutLevelTwoMember_019cb55e-0412-7ce4-b48a-3117732a19d8" xlink:href="fsly-20260331.xsd#fsly_PerformanceTargetPayoutLevelTwoMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-7f28-bc97-c3bc482007af" xlink:to="loc_fsly_PerformanceTargetPayoutLevelTwoMember_019cb55e-0412-7ce4-b48a-3117732a19d8" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PerformanceTargetPayoutLevelThreeMember_019cb55e-0412-76cf-89db-823374a5fe48" xlink:href="fsly-20260331.xsd#fsly_PerformanceTargetPayoutLevelThreeMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_fsly_ShareBasedPaymentArrangementPerformanceTargetDomain_019cb55e-0412-7f28-bc97-c3bc482007af" xlink:to="loc_fsly_PerformanceTargetPayoutLevelThreeMember_019cb55e-0412-76cf-89db-823374a5fe48" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019cb55e-0412-79e9-b106-1d3f5a0bdda5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7a89-ae52-220b29764bd8" xlink:to="loc_us-gaap_AwardTypeAxis_019cb55e-0412-79e9-b106-1d3f5a0bdda5" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-79e9-b106-1d3f5a0bdda5_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-79e9-b106-1d3f5a0bdda5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-79e9-b106-1d3f5a0bdda5_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7145-8717-4471aeddd8fe" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-79e9-b106-1d3f5a0bdda5" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7145-8717-4471aeddd8fe" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-745f-ba4e-d8a16d47f5d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7145-8717-4471aeddd8fe" xlink:to="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-745f-ba4e-d8a16d47f5d5" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019cb55e-0412-7c88-8345-56b0f1f88eee" xlink:href="fsly-20260331.xsd#fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-751b-9341-0b1f4c5dfac0" xlink:to="loc_fsly_StockIssuedDuringPeriodSharesRestrictedStockAwardBonusProgram_019cb55e-0412-7c88-8345-56b0f1f88eee" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019cb55e-0412-7482-8064-0434cafbd15c" xlink:href="fsly-20260331.xsd#fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-751b-9341-0b1f4c5dfac0" xlink:to="loc_fsly_StockIssuedDuringPeriodValueRestrictedStockAwardBonusProgram_019cb55e-0412-7482-8064-0434cafbd15c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PayoutOfPerformanceBasedRestrictedStockUnitsPercentage_019cb55e-0412-7a81-b4c8-3daa1fe733a3" xlink:href="fsly-20260331.xsd#fsly_PayoutOfPerformanceBasedRestrictedStockUnitsPercentage"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-751b-9341-0b1f4c5dfac0" xlink:to="loc_fsly_PayoutOfPerformanceBasedRestrictedStockUnitsPercentage_019cb55e-0412-7a81-b4c8-3daa1fe733a3" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-77cb-8d29-3ca4c4efa4be" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-751b-9341-0b1f4c5dfac0" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-77cb-8d29-3ca4c4efa4be" xlink:type="arc" order="3"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityEmployeeStockPurchasePlanNarrativeDetails" xlink:type="simple" xlink:href="fsly-20260331.xsd#StockholdersEquityEmployeeStockPurchasePlanNarrativeDetails"/>
  <link:definitionLink xlink:role="http://fastly.com/role/StockholdersEquityEmployeeStockPurchasePlanNarrativeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7b6b-98f3-f9e99727e640" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7b6b-98f3-f9e99727e640" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7319-a72e-bcac0688bf6c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AwardTypeAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-7b6b-98f3-f9e99727e640" xlink:to="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7319-a72e-bcac0688bf6c" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7319-a72e-bcac0688bf6c_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7319-a72e-bcac0688bf6c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-7319-a72e-bcac0688bf6c_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-777c-8c63-4e08b24df600" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_019cb55e-0412-7319-a72e-bcac0688bf6c" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-777c-8c63-4e08b24df600" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_019cb55e-0412-7464-9ecc-79dd91b555ab" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_019cb55e-0412-777c-8c63-4e08b24df600" xlink:to="loc_us-gaap_EmployeeStockMember_019cb55e-0412-7464-9ecc-79dd91b555ab" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_019cb55e-0412-7b45-93f8-34602df89a9e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardMaximumEmployeeSubscriptionRate_019cb55e-0412-7b45-93f8-34602df89a9e" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_SharebasedCompensationArrangementbySharebasedPaymentAwardStockPlanOfferingPeriod_019cb55e-0412-7cf5-ab66-45ea70f57012" xlink:href="fsly-20260331.xsd#fsly_SharebasedCompensationArrangementbySharebasedPaymentAwardStockPlanOfferingPeriod"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:to="loc_fsly_SharebasedCompensationArrangementbySharebasedPaymentAwardStockPlanOfferingPeriod_019cb55e-0412-7cf5-ab66-45ea70f57012" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_019cb55e-0412-7bad-b31e-5a0071b3b1b0" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardPurchasePriceOfCommonStockPercent_019cb55e-0412-7bad-b31e-5a0071b3b1b0" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7ce6-80a5-c2be41411a3e" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7ce6-80a5-c2be41411a3e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019d4cbe-2368-75c9-b3cc-8952f6e2d6d5" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7dd8-a161-fc6e2e0cc9dc" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesEmployeeStockPurchasePlans_019d4cbe-2368-75c9-b3cc-8952f6e2d6d5" xlink:type="arc" order="4"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/StockholdersEquityScheduleofStockBasedCompensationExpenseDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0412-7297-a1b0-c48d6d9cb1de" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-701e-acf5-9a69c4e43dd6" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7297-a1b0-c48d6d9cb1de" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-701e-acf5-9a69c4e43dd6" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_019cb55e-0412-7bef-908d-3b114066a267" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_019cb55e-0412-701e-acf5-9a69c4e43dd6" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_019cb55e-0412-7bef-908d-3b114066a267" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7bef-908d-3b114066a267_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019cb55e-0412-7bef-908d-3b114066a267" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7bef-908d-3b114066a267_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7ef0-bd57-a49a11cd15f2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_IncomeStatementLocationDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_019cb55e-0412-7bef-908d-3b114066a267" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7ef0-bd57-a49a11cd15f2" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CostOfSalesMember_019cb55e-0412-7895-8e2b-1e421341e3d1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_CostOfSalesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7ef0-bd57-a49a11cd15f2" xlink:to="loc_us-gaap_CostOfSalesMember_019cb55e-0412-7895-8e2b-1e421341e3d1" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_019cb55e-0412-72db-b278-b2b114a95e70" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ResearchAndDevelopmentExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7ef0-bd57-a49a11cd15f2" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_019cb55e-0412-72db-b278-b2b114a95e70" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SellingAndMarketingExpenseMember_019cb55e-0412-75bf-9edc-f77efbb1f778" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_SellingAndMarketingExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7ef0-bd57-a49a11cd15f2" xlink:to="loc_us-gaap_SellingAndMarketingExpenseMember_019cb55e-0412-75bf-9edc-f77efbb1f778" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_019cb55e-0412-756f-9fb2-49adc8e88a29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_GeneralAndAdministrativeExpenseMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_019cb55e-0412-7ef0-bd57-a49a11cd15f2" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_019cb55e-0412-756f-9fb2-49adc8e88a29" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7696-a932-eca325bceef2" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AllocatedShareBasedCompensationExpense"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_019cb55e-0412-7297-a1b0-c48d6d9cb1de" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_019cb55e-0412-7696-a932-eca325bceef2" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/NetLossPerShareAttributabletoCommonStockholdersScheduleofAntidilutiveSecuritiesExcludedfromComputationofDilutedNetLossPerShareDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0412-77ab-a0e0-360b441a3872" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019cb55e-0412-74e6-8d86-234e07836857" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019cb55e-0412-77ab-a0e0-360b441a3872" xlink:to="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019cb55e-0412-74e6-8d86-234e07836857" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019cb55e-0412-72f5-bde6-35eb4b0aa5ff" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareTable_019cb55e-0412-74e6-8d86-234e07836857" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019cb55e-0412-72f5-bde6-35eb4b0aa5ff" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-72f5-bde6-35eb4b0aa5ff_default" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019cb55e-0412-72f5-bde6-35eb4b0aa5ff" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-72f5-bde6-35eb4b0aa5ff_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesNameDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareByAntidilutiveSecuritiesAxis_019cb55e-0412-72f5-bde6-35eb4b0aa5ff" xlink:to="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockOptionMember_019cb55e-0412-77c6-b049-6fd890ed2d3a" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockOptionMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_us-gaap_EmployeeStockOptionMember_019cb55e-0412-77c6-b049-6fd890ed2d3a" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RestrictedStockUnitsRSUMember_019cb55e-0412-7df8-a767-1abff6412b29" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RestrictedStockUnitsRSUMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_us-gaap_RestrictedStockUnitsRSUMember_019cb55e-0412-7df8-a767-1abff6412b29" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-7d71-8650-f79dd05a525d" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_PerformanceSharesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_us-gaap_PerformanceSharesMember_019cb55e-0412-7d71-8650-f79dd05a525d" xlink:type="arc" order="2"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_MarketBasedPerformanceStockAwardsMember_019cb55e-0412-7c24-ae9a-49fe1dbd304e" xlink:href="fsly-20260331.xsd#fsly_MarketBasedPerformanceStockAwardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_fsly_MarketBasedPerformanceStockAwardsMember_019cb55e-0412-7c24-ae9a-49fe1dbd304e" xlink:type="arc" order="3"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_RelativeTotalShareholderReturnAwardsMember_019cb55e-0412-7347-abc0-db1b6ad6a352" xlink:href="fsly-20260331.xsd#fsly_RelativeTotalShareholderReturnAwardsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_fsly_RelativeTotalShareholderReturnAwardsMember_019cb55e-0412-7347-abc0-db1b6ad6a352" xlink:type="arc" order="4"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_EmployeeStockMember_019cb55e-0412-7a9d-8385-26d96129eda1" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_EmployeeStockMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_us-gaap_EmployeeStockMember_019cb55e-0412-7a9d-8385-26d96129eda1" xlink:type="arc" order="5"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ConvertibleDebtSecuritiesMember_019cb55e-0412-7a85-96aa-89d17e905c83" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ConvertibleDebtSecuritiesMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesNameDomain_019cb55e-0412-73e6-a51b-44bbb721dcd4" xlink:to="loc_us-gaap_ConvertibleDebtSecuritiesMember_019cb55e-0412-7a85-96aa-89d17e905c83" xlink:type="arc" order="6"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019cb55e-0412-7d3b-b96d-a37aecba6b55" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareLineItems_019cb55e-0412-77ab-a0e0-360b441a3872" xlink:to="loc_us-gaap_AntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareAmount_019cb55e-0412-7d3b-b96d-a37aecba6b55" xlink:type="arc" order="0"/>
  </link:definitionLink>
  <link:roleRef roleURI="http://fastly.com/role/SegmentandGeographicInformationScheduleofPropertyandEquipmentandOperatingLeaseRightofUseAssetsNetbyGeographicAreaDetails" xlink:type="simple" xlink:href="fsly-20260331.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_019cb55e-0412-7f4f-b3e0-f9f936bc4c2c" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019cb55e-0412-7eee-b664-aa1969fe1d41" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019cb55e-0412-7f4f-b3e0-f9f936bc4c2c" xlink:to="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019cb55e-0412-7eee-b664-aa1969fe1d41" xlink:type="arc" order="1" xbrldt:closed="true" xbrldt:contextElement="segment"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_StatementGeographicalAxis_019cb55e-0412-7d51-9054-67dd1400d60a" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_StatementGeographicalAxis"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfRevenuesFromExternalCustomersAndLongLivedAssetsTable_019cb55e-0412-7eee-b664-aa1969fe1d41" xlink:to="loc_srt_StatementGeographicalAxis_019cb55e-0412-7d51-9054-67dd1400d60a" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019cb55e-0412-7d51-9054-67dd1400d60a_default" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_StatementGeographicalAxis_019cb55e-0412-7d51-9054-67dd1400d60a" xlink:to="loc_srt_SegmentGeographicalDomain_019cb55e-0412-7d51-9054-67dd1400d60a_default" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_srt_SegmentGeographicalDomain_019cb55e-0412-75f7-a855-b5f141209918" xlink:href="https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd#srt_SegmentGeographicalDomain"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_StatementGeographicalAxis_019cb55e-0412-7d51-9054-67dd1400d60a" xlink:to="loc_srt_SegmentGeographicalDomain_019cb55e-0412-75f7-a855-b5f141209918" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_country_US_019cb55e-0412-7cd7-ba53-8f917c0ac6e4" xlink:href="https://xbrl.sec.gov/country/2025/country-2025.xsd#country_US"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019cb55e-0412-75f7-a855-b5f141209918" xlink:to="loc_country_US_019cb55e-0412-7cd7-ba53-8f917c0ac6e4" xlink:type="arc" order="0"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NonUsMember_019cb55e-0412-7511-bf78-7209c92f33a9" xlink:href="https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd#us-gaap_NonUsMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_SegmentGeographicalDomain_019cb55e-0412-75f7-a855-b5f141209918" xlink:to="loc_us-gaap_NonUsMember_019cb55e-0412-7511-bf78-7209c92f33a9" xlink:type="arc" order="1"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_PropertyPlantAndEquipmentNetAndOperatingLeaseRightOfUseAssetsNet_019cb55e-0412-7877-bbff-1047377bbbf2" xlink:href="fsly-20260331.xsd#fsly_PropertyPlantAndEquipmentNetAndOperatingLeaseRightOfUseAssetsNet"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_RevenuesFromExternalCustomersAndLongLivedAssetsLineItems_019cb55e-0412-7f4f-b3e0-f9f936bc4c2c" xlink:to="loc_fsly_PropertyPlantAndEquipmentNetAndOperatingLeaseRightOfUseAssetsNet_019cb55e-0412-7877-bbff-1047377bbbf2" 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/2025/ecd-2025.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/2025/ecd-2025.xsd#ecd_AllIndividualsMember"/>
    <link:loc xlink:type="locator" xlink:label="loc_fsly_ChristopherB.PaisleyMember_019d9f79-2b3a-77ae-85dc-a0cc6949e3ac" xlink:href="fsly-20260331.xsd#fsly_ChristopherB.PaisleyMember"/>
    <link:definitionArc xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_ecd_AllIndividualsMember" xlink:to="loc_fsly_ChristopherB.PaisleyMember_019d9f79-2b3a-77ae-85dc-a0cc6949e3ac" xlink:type="arc" order="2"/>
  </link:definitionLink>
</link:linkbase>
