CDN Storage

Definition

CDN Storage refers to the space on the distributed servers of a Content Delivery Network where your files are stored and cached. This space is optimized to deliver content to users with low latency and high transfer speeds, regardless of their geographical location. The storage architecture of a CDN is designed for scalability, security, and efficiency, ensuring that content is readily available for quick distribution to end-users.

Folder Structure

CDN storage typically supports a hierarchical folder structure to organize files and directories efficiently. This structure allows you to group related files together, making it easier to manage and maintain your content. The folder structure can be customized based on your requirements, enabling you to create a logical organization of files for better access and retrieval.

In JFW, the CDN storage follows a specific folder structure to store files based on brand, application, user, and other groups. This structure helps in categorizing files according to their purpose and origin, making it easier to locate and manage them effectively.

MIME types are used to identify the nature and format of files stored on a CDN. We use the first part of the MIME type to categorize files into different groups, such as image, video, audio, text, and application. This categorization helps in organizing files based on their content type and ensures that they are served correctly to end-users. For more information on MIME types, refer to the MIME Type section.

Example Folder Structure

FileStorage

├── Brand (e.g., jfw, brand1, brand2)
│   ├── Application
│   │   ├── Assets
│   │   │   ├── [MIME Type]
│   │   ├── [Other Group Name]
│   │   │   ├── [MIME Type]
│   ├── User
│   │   ├── [Group Name] (e.g., profile, document, media)
│   │   │   ├── [Year]
│   │   │   │   ├── [Month]
│   │   │   │   │   ├── [Day]
│   │   │   │   │   │   ├── [MIME Type]

Example:

cdn-base-folder/

├── jfw/
│   ├── app/
│   │   ├── assets/
│   │   │   ├── image/
│   │   │   │   ├── logo.png
│   │   │   │   ├── banner.jpg
│   │   │   ├── video/
│   │   │   │   ├── intro.mp4
│   │   │   │   ├── tutorial.mp4
│   │   │   ├── audio/
│   │   │   │   ├── bgm.mp3
│   │   │   │   ├── sound.mp3
│   │   │   ├── text/
│   │   │   │   ├── notes.txt
│   │   │   │   ├── instructions.txt
│   │   │   ├── application/
│   │   │   │   ├── how-to-use.pdf
│   │   │   │   ├── user-guide.pdf
│   ├── user/
│   │   ├── profile/
│   │   │   ├── 2021/
│   │   │   │   ├── 01/
│   │   │   │   │   ├── 01/
│   │   │   │   │   │   ├── avatar.png
│   │   │   │   │   │   ├── cover.jpg

Last updated

Was this helpful?