Skip to content
ToanLB
Go back

How to Partition Addressables Groups for Hot Updates and DLC: A 4-Tier Strategy Without Ballooning CDN Costs

~13 min read
How to Partition Addressables Groups for Hot Updates and DLC: A 4-Tier Strategy Without Ballooning CDN Costs

When integrating Addressables into a greenfield Unity project, the path of least resistance is tempting: dump all prefabs, textures, and audio clips into a single group named Default Local Group.

During early prototyping or initial Alpha builds, this shortcut works flawlessly. Assets stream asynchronously through clean C# tasks. The team assures themselves: “We only have a dozen stages and a small footprint; keep everything in Local for now, and we will figure out CDN delivery after launch”.

Yet when the title transitions into commercial Live-ops, the technical debt strikes violently.

Live-ops schedules a seasonal in-game event featuring seasonal banners and a minor typo fix on a stage background. The artist alters a single 200KB texture. But when the engineering team triggers the content update build pipeline, reality sets in: The entire 300MB AssetBundle recomputes with a brand-new hash.

Upon launching the game, players are greeted by an unexpected 300MB download bar over cellular networks. Day-one event churn rates spike. At month’s end, the studio’s cloud CDN egress bill arrives at quadruple the projected budget.

Worse, if your initial store release disabled remote catalogs or discarded the internal compilation state binary, differential patch updates collapse completely.

How should you partition Addressables Groups to support instantaneous onboarding, smooth DLC streaming, and seamless live patching without bankrupting the studio on CDN bandwidth?


1. Two Classic Live-ops Pitfalls with Addressables

Across mobile productions scaling across hundreds of levels, two configuration oversights routinely sabotage live operations:

Pitfall 1: Keeping Everything in Local and Discarding content_state.bin

Many teams assume: “For our v1.0 release, pack everything into the local binary so players can jump in immediately. We will configure Remote hosting when we publish DLC later”.

Consequently, developers uncheck Build Remote Catalog in Addressables Settings. When players download v1.0, the game client never polls remote endpoints for catalog updates.

More critically, when building player content, Unity generates a vital state artifact: addressables_content_state.bin (located by default in Assets/AddressableAssetsData/<Platform>/, configurable via Content State Build Path in System Settings).

This binary artifact catalogs hash maps and dependency trees for every asset shipped in that release. If developers add this file to .gitignore or discard it during CI/CD workspace teardowns:

Important

Treat addressables_content_state.bin as the cryptographic root key of your live distribution architecture. You must commit this file into version control (Git / Git LFS) or preserve it within CI/CD build artifacts upon compiling any production release candidate!

Pitfall 2: Packing All Remote Assets into One Monolithic Group via Pack Together

The second common error is consolidating hundreds of stages, backgrounds, and character assets into a single group named Remote_Content with the default setting Bundle Mode: Pack Together.

Unity AssetBundles operate under an all-or-nothing delivery model:


2. Two Schemas That Dictate Group Packaging Architecture

To master group partitioning, you must inspect the two primary configuration schemas attached to each Addressables Group Inspector:

Schema 1: BundledAssetGroupSchema

This schema controls physical archive generation and target storage paths:

  1. BuildPath and LoadPath:

    • Local: Archives are baked directly into the application’s StreamingAssets directory (LocalBuildPath and LocalLoadPath). Players access data locally without internet connectivity.
    • Remote: Bundles compile into a staging directory (RemoteBuildPath) for upload to CDN buckets, loaded by clients via URL endpoints (RemoteLoadPath).
  2. Bundle Mode:

    • Pack Together: All assets in the group compile into a single AssetBundle archive.
      • Pros: Minimal file count, reduced HTTP request overhead, fewer operating system file descriptors.
      • Cons: Modifying a single asset forces players to redownload the entire archive.
    • Pack Separately: Each asset in the group produces an independent AssetBundle archive.
      • Pros: Surgical patching; updates download strictly the modified asset.
      • Cons: Massive bundle explosion (thousands of tiny files), severe I/O contention, high RAM overhead for bundle headers, and risks exhausting OS file handle limits.
    • Pack Together By Label: Bundles assets sharing identical labels into common archives.
      • Pros: High architectural flexibility, grouping related assets into logical units (e.g., Chapter_01, Chapter_02).
      • Important Nuance: If an asset has two distinct labels (e.g., Chapter_01 and Boss), Addressables compiles that asset into a third distinct bundle specific to that label combination.
  3. AssetBundle Compression:

    • LZ4: The industry standard for production. Uses chunk-based compression, allowing partial decompression from disk directly into RAM without Main Thread hitches.
    • LZMA: Offers 15-20% higher compression ratios, but requires decompressing the entire bundle payload into memory upfront. Induces CPU spikes and transient RAM bloat; strictly reserved for massive initial background downloads.

Schema 2: ContentUpdateGroupSchema (Update Restrictions)

This schema controls how the build pipeline handles modified assets during content updates:


3. The 4-Tier Group Partitioning Architecture

To strike an optimal balance between instant player onboarding, live-ops agility, and minimal CDN costs, professional game studios apply a 4-tier group partitioning architecture:

flowchart TB
    subgraph LOCAL["Initial Binary: Local App"]
        direction TB
        L1["Tier 1: Core Local (Onboarding)"]
        L2["Boot Scene, UI Audio, First 20 Levels"]
        L1 --> L2
    end

    subgraph REMOTE["Remote Delivery: Cloud CDN"]
        direction TB
        R1["Tier 2: Dynamic Live-Ops (Short Lifespan)"]
        R2["Tier 3: Level Packs & DLC (Paced Progression)"]
        R1 -.->|"Independent Streams"| R2
    end

    subgraph SHARED["Shared Foundations: Dependencies"]
        direction TB
        S1["Tier 4: Global Shaders & Materials"]
        S2["Shared Sprite Atlases & Core HUD"]
        S1 --> S2
    end

    LOCAL -->|"Instant Launch Offline"| CLIENT["Game Client (Player Device)"]
    R1 -.->|"Stream Event Assets"| CLIENT
    R2 -.->|"Background Stream by Progression"| CLIENT
    SHARED ==>|"Provides Foundation"| LOCAL
    SHARED -.->|"Shared Reference"| REMOTE

Tier 1: Core Local (Instant Play & Onboarding)

Tier 2: Dynamic Live-Ops & Events (High Volatility / Short Lifespan)

Tier 3: Level Packs & DLC (Paced Progression & Background Download)

Tier 4: Shared Dependencies & The Duplicate Asset Trap

This is the most dangerous technical pitfall when partitioning multiple groups:

Suppose you have a shared texture Noise_Texture.png or custom shader Custom_Dissolve.shader. This texture is referenced by a prefab in Group_Core and another prefab in Group_Chapter_02.

If Noise_Texture.png is not explicitly placed in an Addressable Group:

Caution

Golden Rule: Consolidate cross-referenced assets into an explicit group named Shared_Dependencies.

  • If these assets are required by Tier 1 (Core Local), the Shared Group must reside in Local. Placing it in Remote causes missing shaders (magenta screens) when players open the game offline!
  • Prior to finalizing release builds, open Addressables > Analyze and execute: Check Duplicate Bundle Dependencies to purge silent cross-bundle duplication.

4. Production Code: Content Update and Delta Download Manager

In a mobile Puzzle RPG featuring over 200 chapters and weekly live events, the client binary is capped below 120MB to optimize organic store conversions. Subsequent chapters stream dynamically based on player progression.

To deliver a polished experience, the client utilizes a centralized content update service. This service polls remote catalogs, computes exact download deltas (skipping cached bundles), and reports real-time download progress.

Production Example: ContentUpdateManager

Below is a production ContentUpdateManager handling catalog synchronization, size estimation, and resilient background downloading via Addressables APIs:

using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using UnityEngine;
using UnityEngine.AddressableAssets;
using UnityEngine.ResourceManagement.AsyncOperations;

public class ContentUpdateManager : MonoBehaviour
{
    // Polls the remote CDN to determine if catalog updates are available
    public async Task<List<string>> CheckForUpdateCatalogsAsync(CancellationToken cancellationToken = default)
    {
        var checkHandle = Addressables.CheckForCatalogUpdates(autoReleaseHandle: false);
        try
        {
            var catalogs = await checkHandle.Task;
            cancellationToken.ThrowIfCancellationRequested();

            if (checkHandle.Status == AsyncOperationStatus.Failed)
            {
                Debug.LogError($"[ContentUpdate] Catalog check failed: {checkHandle.OperationException}");
                throw checkHandle.OperationException ?? new Exception("Unable to connect to content server.");
            }

            return catalogs ?? new List<string>();
        }
        finally
        {
            Addressables.Release(checkHandle);
        }
    }

    // Applies updated catalog manifests and clears obsolete bundle caches
    public async Task<bool> UpdateCatalogsAsync(
        List<string> catalogs, 
        bool autoCleanBundleCache = true, 
        CancellationToken cancellationToken = default)
    {
        if (catalogs == null || catalogs.Count == 0) return true;

        var updateHandle = Addressables.UpdateCatalogs(autoCleanBundleCache, catalogs, autoReleaseHandle: false);
        try
        {
            await updateHandle.Task;
            cancellationToken.ThrowIfCancellationRequested();
            return updateHandle.Status == AsyncOperationStatus.Succeeded;
        }
        finally
        {
            Addressables.Release(updateHandle);
        }
    }

    // Queries actual remaining download size for a given address or label
    public async Task<long> GetDownloadSizeAsync(string key, CancellationToken cancellationToken = default)
    {
        var sizeHandle = Addressables.GetDownloadSizeAsync(key);
        try
        {
            long downloadSize = await sizeHandle.Task;
            cancellationToken.ThrowIfCancellationRequested();
            return downloadSize;
        }
        finally
        {
            Addressables.Release(sizeHandle);
        }
    }

    // Downloads dependencies with progress reporting and cancellation support
    public async Task<bool> DownloadContentWithProgressAsync(
        string key, 
        Action<float, long, long> onProgressUpdated,
        CancellationToken cancellationToken = default)
    {
        long totalBytes = await GetDownloadSizeAsync(key, cancellationToken);
        if (totalBytes <= 0)
        {
            onProgressUpdated?.Invoke(1.0f, 0, 0);
            return true;
        }

        var downloadHandle = Addressables.DownloadDependenciesAsync(key, autoReleaseHandle: false);
        try
        {
            while (!downloadHandle.IsDone)
            {
                cancellationToken.ThrowIfCancellationRequested();
                var status = downloadHandle.GetDownloadStatus();
                onProgressUpdated?.Invoke(status.Percent, status.DownloadedBytes, status.TotalBytes);
                await Task.Yield();
            }

            cancellationToken.ThrowIfCancellationRequested();
            bool isSuccess = downloadHandle.Status == AsyncOperationStatus.Succeeded;
            if (isSuccess)
            {
                onProgressUpdated?.Invoke(1.0f, totalBytes, totalBytes);
            }
            return isSuccess;
        }
        finally
        {
            Addressables.Release(downloadHandle);
        }
    }
}

Pure C# Architecture Simulator and Unit Testing

To verify group extraction rules and delta download calculations independently of the Unity Engine, we encapsulate partitioning logic into testable C# models:

using System;
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;

public enum GroupStorageLocation
{
    LocalStreamingAssets,
    RemoteCdn
}

public enum GroupUpdatePolicy
{
    PreventUpdates,
    CanChangePostRelease
}

public class MockAssetRecord
{
    public string AssetAddress { get; set; }
    public string ContentHash { get; set; }
    public long ByteSize { get; set; }
}

public class MockGroupConfig
{
    public string GroupName { get; set; }
    public GroupStorageLocation StorageLocation { get; set; }
    public GroupUpdatePolicy UpdatePolicy { get; set; }
    public List<MockAssetRecord> Assets { get; set; } = new();

    public long TotalSize => Assets.Sum(a => a.ByteSize);
}

public class ContentUpdateCalculator
{
    // Determines if a modified asset must be extracted into a separate patch group
    public static bool ShouldExtractToUpdateGroup(MockGroupConfig group, MockAssetRecord baseAsset, string newHash)
    {
        if (baseAsset.ContentHash == newHash) return false;

        // Assets inside PreventUpdates groups must be extracted to preserve base archives
        return group.UpdatePolicy == GroupUpdatePolicy.PreventUpdates;
    }

    // Calculates delta download size by comparing local installed catalog with remote latest
    public static long CalculateDeltaDownloadSize(
        List<MockAssetRecord> localInstalledAssets, 
        List<MockAssetRecord> remoteLatestAssets)
    {
        long patchBytes = 0;
        var localMap = localInstalledAssets.ToDictionary(a => a.AssetAddress, a => a.ContentHash);

        foreach (var remoteAsset in remoteLatestAssets)
        {
            if (!localMap.TryGetValue(remoteAsset.AssetAddress, out var localHash) || localHash != remoteAsset.ContentHash)
            {
                patchBytes += remoteAsset.ByteSize;
            }
        }

        return patchBytes;
    }
}

[TestFixture]
public class ContentUpdateStrategyTests
{
    [Test]
    public void PreventUpdates_WhenAssetModified_RequiresExtractionToPatchGroup()
    {
        var coreLocalGroup = new MockGroupConfig
        {
            GroupName = "CoreLocal",
            StorageLocation = GroupStorageLocation.LocalStreamingAssets,
            UpdatePolicy = GroupUpdatePolicy.PreventUpdates,
            Assets = new List<MockAssetRecord>
            {
                new MockAssetRecord { AssetAddress = "UI/TitleScreen", ContentHash = "hash_v1", ByteSize = 2_500_000 }
            }
        };

        var asset = coreLocalGroup.Assets[0];
        bool needExtract = ContentUpdateCalculator.ShouldExtractToUpdateGroup(coreLocalGroup, asset, "hash_v2");

        Assert.IsTrue(needExtract, "Local assets under PreventUpdates must be extracted to a remote patch group upon modification.");
    }

    [Test]
    public void CanChangePostRelease_WhenAssetModified_DoesNotRequireExtraction()
    {
        var liveOpsEventGroup = new MockGroupConfig
        {
            GroupName = "Event_Halloween",
            StorageLocation = GroupStorageLocation.RemoteCdn,
            UpdatePolicy = GroupUpdatePolicy.CanChangePostRelease,
            Assets = new List<MockAssetRecord>
            {
                new MockAssetRecord { AssetAddress = "Event/Banner", ContentHash = "hash_v1", ByteSize = 500_000 }
            }
        };

        var asset = liveOpsEventGroup.Assets[0];
        bool needExtract = ContentUpdateCalculator.ShouldExtractToUpdateGroup(liveOpsEventGroup, asset, "hash_v2");

        Assert.IsFalse(needExtract, "Dynamic event groups allow in-place bundle rebuilds without group extraction.");
    }

    [Test]
    public void CalculateDeltaDownloadSize_WhenOnlyOneAssetModified_OnlyDownloadsModifiedBytes()
    {
        var localInstalled = new List<MockAssetRecord>
        {
            new MockAssetRecord { AssetAddress = "Chapter1/Background", ContentHash = "hash_bg_v1", ByteSize = 15_000_000 },
            new MockAssetRecord { AssetAddress = "Chapter1/Music", ContentHash = "hash_audio_v1", ByteSize = 5_000_000 }
        };

        var remoteLatest = new List<MockAssetRecord>
        {
            new MockAssetRecord { AssetAddress = "Chapter1/Background", ContentHash = "hash_bg_v2", ByteSize = 15_200_000 },
            new MockAssetRecord { AssetAddress = "Chapter1/Music", ContentHash = "hash_audio_v1", ByteSize = 5_000_000 }
        };

        long deltaBytes = ContentUpdateCalculator.CalculateDeltaDownloadSize(localInstalled, remoteLatest);

        Assert.AreEqual(15_200_000, deltaBytes, "Client should only download the delta for the modified background file.");
    }

    [Test]
    public void CalculateDeltaDownloadSize_WhenAllAssetsIdentical_DownloadSizeIsZero()
    {
        var localInstalled = new List<MockAssetRecord>
        {
            new MockAssetRecord { AssetAddress = "HUD/Coins", ContentHash = "hash_same", ByteSize = 100_000 }
        };

        var remoteLatest = new List<MockAssetRecord>
        {
            new MockAssetRecord { AssetAddress = "HUD/Coins", ContentHash = "hash_same", ByteSize = 100_000 }
        };

        long deltaBytes = ContentUpdateCalculator.CalculateDeltaDownloadSize(localInstalled, remoteLatest);

        Assert.AreEqual(0, deltaBytes, "Delta size must equal zero when hashes match perfectly.");
    }
}

5. Architectural Trade-off Matrix: Bundle Packaging Modes

CriteriaPack TogetherPack SeparatelyPack Together By Label
Generated Bundle CountMinimal (1 archive per group)Excessive (1 archive per asset)Balanced (1 archive per label)
Download Cost to Patch 1 AssetVery High; downloads entire archiveMinimal; downloads only changed assetLow; downloads only labeled bundle
HTTP Request CountMinimal (1 request per group)High; network queue contentionModerate; controlled per module
Bundle Header RAM OverheadMinimal; single bundle metadataHigh; hundreds of bundle headers in RAMModerate; structured by screen flow
Risk of Unintended Hybrid BundlesNoneNonePresent if assets share multiple labels
Optimal Use CaseCore Local, Tutorial, Short EventsMassive single assets (4K Cutscenes)Chapter packs, DLC, Character skins

6. Production Takeaways


Share this post:
Lương Bảo Toàn

Luong Bao Toan

I work in HMI Automotive and Game development, sharing knowledge, hands-on experience, and stories I find interesting throughout my journey.

Did this article bring you value?

If this article helped your work, or you simply enjoyed it and want to support me, you can

Buy me a coffee

Related Articles

Comments & Discussions

Powered by Giscus

Get New Posts via Email

Subscribe to stay updated and never miss new posts from me.

* No spam. You can unsubscribe at any time with a single click.