

# SUS03-BP05 使用最能支援資料存取和儲存模式的軟體模式和架構
<a name="sus_sus_software_a6"></a>

了解資料在工作負載中的使用方式、使用者的使用方式、傳輸方式以及儲存方式。使用最能支援資料存取和儲存的軟體模式與架構，以盡可能減少支援工作負載所需的運算、聯網和儲存資源。

 **常見的反模式：**
+  您假設所有工作負載具有類似的資料儲存和存取模式。
+  您只使用一個存儲層 – 假設所有工作負載都適合該層。
+  您假設資料存取模式不會隨著時間改變。
+  您的架構支援潛在的高資料存取爆量，這會導致資源在大部分的時間處於閒置狀態。

 **建立此最佳實務的優勢：**根據資料存取和儲存模式選取及最佳化您的架構，有助於降低開發複雜性並提升整體使用率。了解何時使用全域表、資料分割和快取將協助您降低營運負擔，並根據您的工作負載需求進行擴展。

 **未建立此最佳實務時的曝險等級：**中 

## 實作指引
<a name="implementation-guidance"></a>

 為了改善長期工作負載永續性，請使用支援工作負載的資料存取和儲存特性的架構模式。這些模式可協助您有效率地擷取和處理資料。例如，搭配針對獨特分析使用案例而最佳化的專用服務來使用 [AWS 上的現代資料架構](https://aws.amazon.com/big-data/datalakes-and-analytics/modern-data-architecture/)。這些架構模式有利於高效率資料處理並降低資源用量。

### 實作步驟
<a name="implementation-steps"></a>
+  **了解資料特性：**分析您的資料特性和存取模式，以識別雲端資源的正確組態。應考量的重要特性包括：
  +  **資料類型：**結構化、半結構化、非結構化 
  +  **資料成長：**有界限、無界限 
  +  **資料耐用性：**持續性、暫時性、臨時 
  +  **存取模式：**讀取或寫入、更新頻率、尖峰或一致 
+  **使用最佳架構模式：**使用最能支援資料存取和儲存模式的架構模式。
  + [ 啟用資料持續性的模式](https://docs.aws.amazon.com/prescriptive-guidance/latest/modernization-data-persistence/enabling-patterns.html)
  + [ 開始建構吧！現代資料架構](https://aws.amazon.com/blogs/architecture/lets-architect-modern-data-architectures/)
  + [AWS 上的資料庫：使用正確的工具完成任務](https://www.youtube.com/watch?v=-pb-DkD6cWg)
+  **使用專用服務：**使用符合用途的技術。
  +  利用可原生處理壓縮資料的技術。
    + [ Athena 壓縮支援檔案格式](https://docs.aws.amazon.com/athena/latest/ug/compression-formats.html)
    + [ 在 AWS Glue 中的 ​ETL 輸入與輸出格式選項](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-format.html)
    + [ 使用 Amazon Redshift 從 Amazon S3 載入壓縮資料檔案](https://docs.aws.amazon.com/redshift/latest/dg/t_loading-gzip-compressed-data-files-from-S3.html)
  +  使用專用[分析服務](https://aws.amazon.com/big-data/datalakes-and-analytics/?nc2=h_ql_prod_an_a)進行架構中的資料處理。如需有關 AWS 專用分析服務的詳細資訊，請參閱 [AWS re:Invent 2022 - 在 AWS 上建置現代資料架構](https://www.youtube.com/watch?v=Uk2CqEt5f0o)。
  +  使用最能支援您主導查詢模式的資料庫引擎。管理您的資料庫索引以確保高效率查詢。如需進一步詳細資訊，請參閱 [AWS 資料庫](https://aws.amazon.com/products/databases/)和 [AWS re:Invent 2022 - 使用專用資料庫將應用程式現代化](https://www.youtube.com/watch?v=V-DiplATdi0)。
+  **資料傳輸最小化：**選取可減少架構中消耗的網路容量的網路協定。

## 資源
<a name="resources"></a>

 **相關文件：**
+  [使用 Amazon Redshift 從單欄資料格式複製](https://docs.aws.amazon.com/redshift/latest/dg/copy-usage_notes-copy-from-columnar.html) 
+  [在 Firehose 中轉換您的輸入記錄格式](https://docs.aws.amazon.com/firehose/latest/dev/record-format-conversion.html) 
+  [轉換為單欄格式，提高 Amazon Athena 的查詢效能](https://docs.aws.amazon.com/athena/latest/ug/convert-to-columnar.html) 
+  [在 Amazon Aurora 上使用 Performance Insights 監控資料庫負載](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/USER_PerfInsights.html) 
+  [在 Amazon RDS 上使用 Performance Insights 監控資料庫負載](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.html) 
+ [ Amazon S3 Intelligent-Tiering 儲存類別](https://aws.amazon.com/s3/storage-classes/intelligent-tiering/)
+ [ 使用 Amazon DynamoDB 建置 CQRS 事件存放區](https://aws.amazon.com/blogs/database/build-a-cqrs-event-store-with-amazon-dynamodb/)

 **相關影片：**
+ [AWS re:Invent 2022 - 在 AWS 上建置資料網格架構](https://www.youtube.com/watch?v=nGRvlobeM_U)
+ [AWS re:Invent 2023 - 深入探索 Amazon Aurora 及其創新](https://www.youtube.com/watch?v=je6GCOZ22lI)
+ [AWS re:Invent 2023 - 提高 Amazon EBS 效率並更具成本效益](https://www.youtube.com/watch?v=7-CB02rqiuw)
+ [AWS re:Invent 2023 - 使用 Amazon S3 最佳化儲存價格和效能](https://www.youtube.com/watch?v=RxgYNrXPOLw)
+ [AWS re:Invent 2023 - 在 Amazon S3 上建置和最佳化資料湖](https://www.youtube.com/watch?v=mpQa_Zm1xW8)
+ [AWS re:Invent 2023 - 使用 Amazon EventBridge 提升事件驅動型模式](https://www.youtube.com/watch?v=6X4lSPkn4ps)

 **相關範例：**
+ [AWS 專用資料庫研討會](https://catalog.us-east-1.prod.workshops.aws/workshops/93f64257-52be-4c12-a95b-c0a1ff3b7e2b/en-US)
+ [AWS 現代資料架構 Immersion Day](https://catalog.us-east-1.prod.workshops.aws/workshops/32f3e732-d67d-4c63-b967-c8c5eabd9ebf/en-US)
+ [ 在 AWS 上建置資料網格](https://catalog.us-east-1.prod.workshops.aws/workshops/23e6326b-58ee-4ab0-9bc7-3c8d730eb851/en-US)