Getting More for Less from OCI Object Storage 1cemD3MR8FOKokYO2a kW w

Getting More for Less from OCI Object Storage

Quick Take

OCI Object Storage can be a cost-effective home for files, backups and infrequently changed application data. Storage tiers, lifecycle rules and retention controls can help match storage behaviour to access patterns. The right choice depends on retrieval frequency, minimum retention periods, operations, egress and the applicable compliance requirements. This article summarises a December 2024 presentation and illustrates a simple Object Storage-backed web application. It does not provide measured energy savings or a benchmark proving that Object Storage is the cheapest possible database.

At the Oracle ACE Virtual Conference in December 2024, Lucas Jellema, CTO at Conclusion, shared insights on how to maximize the benefits of Oracle Cloud Infrastructure (OCI) Object Storage. This blog post summarizes the key points from his presentation, highlighting how to ease administration, save costs, enhance energy efficiency, and ensure regulatory compliance.

  1. Cost and Energy Savings: Matching OCI Object Storage tiers and lifecycle policies to actual access patterns may reduce storage expenditure and unnecessary resource use. Savings depend on the original design, object sizes, retention, retrieval and traffic; no measured savings percentage or energy baseline is provided here.
  2. Regulatory Compliance: OCI Object Storage offers retention and access-control features that may support regulatory requirements. Whether a particular configuration is compliant depends on the applicable obligation, chosen policies and evidence of their enforcement.
  3. Access and Management: The OCI File Explorer, a free GUI file navigator, simplifies the management of OCI Object Storage, making it a possible low-complexity alternative for some file-backed applications, rather than a general-purpose database replacement.

Storage Tiers

OCI Object Storage offers three storage tiers:

  • Standard: For frequently accessed data.
  • Infrequent Access: For data that is accessed less often.
  • Archive: For long-term storage of data that is rarely accessed.

By using these tiers effectively, businesses can optimize their storage costs and energy consumption.

Here are some details on the (differences between the) storage tiers:

Getting More for Less from OCI Object Storage 1DwVLF9iw7RE0uPq2ZMcbYg
Conditions and SLA for each of the three storage tiers

As important are the price differences — indicated for 100 GB per month:

Getting More for Less from OCI Object Storage 1ORqf UiF8fUR2UWLw6Yo A

Picking the right storage tier — especially for data not frequently used anymore — can make a huge difference. Cold storage (like OCI Archive Tier) can use 70–90% less energy than hot storage, depending on access patterns.

Object Lifecycle Management and Auto-Tiering

Object Lifecycle Management allows businesses to define rules for managing objects in OCI Object Storage. Actions these rules can dictate include moving objects to different storage tiers or deleting them based on specific conditions. Auto-Tiering automatically optimizes the storage tier for objects larger than 1 MiB, further enhancing cost and energy efficiency. Rules have a target to act on; this target can be Objects, Latest Version of Objects, Previous Versions of Objects. Afilter can be defined to specify the condition under which the action is performed: type or name pattern of object, the number of days since creation or modification or version transition

Data Retention and Access Control

To ensure compliance with regulatory requirements, OCI Object Storage offers data retention rules that prevent changes or deletions for a fixed period. Fine-grained access control allows businesses to define policies at the object level, ensuring that only authorized users can access or modify data.

Data Retention Rules are defined on a bucket and can prevent changing and deleting an object for a fixed period since its last modified time. Retention Rules can be locked: no one can remove or loosen a locked retention rule. Note that the Storage tier can be updated for objects under a retention rule, for example to move objects to (cheap, lower energy) archive tier.

As of August 2024, Private IP addresses can be mandated to access bucket(s) only from within an OCI VCN. Fine Grained Access Control with OCI IAM Policy at Object Level (in addition to Bucket Level) was introduced in March 2024. Objects can be referenced in these policies with name or OCID or with a pattern using wildcards. These policies can govern read, (over)write, delete, delete previous version(s), change storage tier.

Encryption

All data in OCI Object Storage is encrypted, and businesses can use their own keys for added security. Encryption of objects can be with your own keys (in OCI Vault or provided during upload). Buckets can be re-encrypted at any time

Pre Authenticated Request (URL)

Pre-Authenticated Requests (PAR) provide direct access to objects via HTTP requests, making it easy to share data securely.

Getting More for Less from OCI Object Storage 1kJaL68CXVQpNjVSHBtcHbA
A PAR provides direct access to a file, set of files or folder to the holder — no questions asked

With a PAR, anyone — even without access to Oracle Cloud or even knowledge of Oracle Cloud — can easily access specified files and folders or upload files to a designated location.

Some things to know about PARs

  • Direct access to any object or collection of objects via HTTP requests (GET, POST, PUT); neither signed OCI API call nor OCI authentication required
  • Access to OCI Object Storage from any HTTP client — including cURL and static web applications
  • PAR can have an expiry date and can be revoked at any time. Note: when the creator of the PAR loses permissions used in the PAR, the PAR loses them too!
  • PAR can allow any combination of read | list | write, for an object, an object pattern or a bucket
  • A static web application can be published using a PAR
Getting More for Less from OCI Object Storage 1RqgEUW3E WUfUUo7kS4fLw
Creation of a PAR in the OCI Console for a Bucket in Object Storage

OCI File Manager

The OCI File Manager is a static web application that allows users to browse, upload, and download objects in OCI Object Storage. It runs entirely in the browser and interacts with OCI through HTTP requests, providing a simple and efficient way to manage data. See this article for an extensive introduction of this free tool.

Getting More for Less from OCI Object Storage 1cemD3MR8FOKokYO2a kW w
The OCI File Manager leverages a PAR to interact directly from the browser with the “file system” on OCI Object Storage

Cheapest Database ever — for read often, change infrequently (web) applications

For fairly simple requirements for the persistent data backend for a web application with read often, change infrequently characteristics

Getting More for Less from OCI Object Storage 1WORAmpEJqMeDS1V98P9lGQ
A persistent data backend for a (static) web application

If these are the requirements:

•Requirements for web application’s data store

•data is available

•interaction is simple

•data changes are persisted (durable)

•changes from different users do not interface (isolated)

•changes are recorded atomically

•data storage is cheap and uses little energy

Then OCI Object Storage can fit the bill perfectly — using the Pre Authenticated Request.

Getting More for Less from OCI Object Storage 1Wm qTb02ECC 6SdO5sTPag
Web Application using OCI Object Storage as its persistent data backend (its database so to speak)

OCI Object Storage as Database Platform for read often, change infrequently (web) applications. The steps are:

  • Store data (JSON files) and images in a bucket
  • Create Pre-Authenticated Request for easy access over HTTP
  • from the Web Application use HTTP requests to the PAR to load data and save (changed) data. For handling multi-user scenarios, changes can be written to delta files

Conclusion

OCI Object Storage provides useful storage tiers, lifecycle policies, retention options and access controls. Those features can improve cost efficiency and support governance when they fit the workload. Neither financial savings nor energy reductions follow automatically, and compliance must be tested against the actual obligations and configuration.

OCI File Manager can simplify object administration for suitable workloads. For an example of integrating Object Storage behind an API Gateway, see Post files to OCI Object Storage Bucket via API Gateway. Pre-authenticated request URLs grant access to their defined resources to anyone who possesses the URL; apply Oracle’s guidance on scope and expiry and keep such URLs secret.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.