A SHORT HISTORY OF FILE STORAGE AND RELATIONAL DATABASES

Binary file content can be stored directly within a relational database, typically in a Binary Large Object (BLOB) column. While this approach provides the benefit of having both the binary content and its associated relational data managed within the same transactional system, storing large volumes of binary data directly within database tables does not scale very effectively. It can introduce significant storage, performance, backup and operational overhead. An alternative is to store binary file content outside the database. However, with this approach the database loses its inherent ability to guarantee transactional consistency between the relational data and the external file content. Responsibility for maintaining consistency between the two storage systems must then be assumed by the application layer.

In 2007 and 2008 Oracle and Microsoft introduced SecureFiles and FILESTREAM respectively to address the problem described above. FILESTREAM allows binary file content to be stored in the filesystem while maintaining transactional consistency with the associated relational database records. SecureFiles uses a similar approach.

However, database-integrated file storage technologies such as FILESTREAM are not designed to address extremely large, geographically distributed storage architectures. For requirements involving petabyte-scale volumes, massive horizontal scalability and geographically distributed access, cloud object storage services such as Microsoft Azure Blob Storage, Amazon S3 and Google Cloud Storage are more scalable. These services provide highly scalable, centrally managed and cost-effective storage infrastructure capable of accommodating enormous volumes of data.

The architectural trade-off of cloud object storage is that it operates independently of the relational database. While object storage services provide their own durability, consistency and access-control guarantees, they do not ordinarily participate in the same ACID transaction within a relational database with an arbitrary schema. Consequently, transactional consistency between document content and associated relational data must be maintained through application-layer coordination, additional infrastructure or compensating transaction mechanisms. The trade-off is not an academic theoretical edge case. Concurrent batch operations for example are far more likely to leave irreconcilable inconsistencies than when using an integrated relational database. The additional coordination required to maintain consistency across independently managed storage systems can directly undermine the scalability benefits that motivated their separation in the first place. Distribution provides independence, but atomicity requires coordination. The more independence is pursued, the more difficult atomicity becomes. The more atomicity is demanded, the more coordination is introduced.

Cloud object storage also introduces a separate security boundary. Access to document content is governed by the object storage service's own identity and access-control mechanisms, in addition to those governing the relational database. This introduces additional complexity when access permissions must be enforced over both document content and associated relational data. These challenges are manageable, and cloud-based architectures can provide very high levels of reliability and security. However they require compromises in the nature of the integrity and security guarantees that can be provided. In particular, they do not natively provide an integrated architecture in which the relational database retains transactional control of the binary document content while at the same time independently establishing the originating user's identity and permissions at a product-layer single security boundary covering both the relational data and the files.

The above distinction is fundamental to Elyse. By retaining full database control of document binary content through SQL Server FILESTREAM, and combining this with Windows Integrated Security and database-enforced ORIGINAL_LOGIN()-based identity and access controls, Elyse provides a combination of transactional integrity and originating-user security guarantees that is not presently available as an integrated capability in conventional cloud-native managed database and object-storage services. Elyse is based on an architecture that has integrity by design.