Azure Storage
• by Adam Skibicki
Who am I?
• Billennium .NET
developer
• Speaker
• programowanienaostro.pl
• https://github.com/adamki
bicki
Azure Storage Account
Account types
Standard
• GPv2
Premium (only LRS)
• GPv2 (page blobs, disks)
• File Storage
• Block Blob Storage
Redundancy
• LRS
• ZRS
• GRS
• RA-GRS
Encryption
• AES-256
Blob storage
• Serving files directly to
browser
• Distributed access
• Streaming video, audio
• Logs
• Backups, restore, disaster
recovery, archive data
Structure
Block blob
• Consists of blocks up to
100 MB each
• We operate on entire
blocks
• We cannot modify part of
the block
Page blob
• Consists of 512-byte
pages
• Random read and write
• Virtual machine disks are
based on them
Append blob
• Consists of blocks up to 4
MB each
• Cannot modify or delete
single blocks
• Each write operation
creates new block at the
end of blob
Blob access
tiers
• Hot – frequently
accessed data
• Cool – infrequently
accessed data
• Archive – flexible latency
(several hours)
Storage per
GB/month
• Hot – $0.0196
• Cool –$0.0100
• Archive – $0.0018
10k reads
• Hot – $0.043
• Cool –$0.100
• Archive – $6.000
• Archive High Priority -
$32.50
Lifecycle
management
• Reduce storage costs
• Automate migrating blobs
between access tiers
• Automate deletions and
snapshots
• Run once per day
Early deletion
Payment for reserved data
storage time.
Snapshots
• Built in blob versioning
• Readonly blob copies
Soft delete
• Snapshots before blob
modification or deletion
Static hosting
• Static website
• JS, CSS, HTML.
• Frontend – SPA, backend
- API
Table storage
• NoSQL
• Key-value pairs
• Schemaless
• Structured data
• No relations
Use scenarios
• Large data volumes
• Cheaper than SQL
database
• It depends
Structure
Table structure
• Partition key
• Row key
• Timestamp
• Up to 252 other columns
• Max. 1 MB per entity
Partitioning
• Blob service – blob
• Queue service – queue
• Table service – partition
key
Partition key
• Key selection problem
• Querying in scope of
single partition key value
are atomic
Row key
• Idenitfies record in
partition
• More partitions – scaling
• Problems with atomic
operations and data
consistency
• Tradeoff
Partitioning
Entity Group
Transactions
• Built in atomic batch
transactions (up to 100
entities per transaction)
• Operates on records in
single partition
• Simple queue
• Max. 64 KB per message
• Max. 7 days
• FIFO – not guaranteed
• Other services - Event
Grid, Event Hub, Service
Bus
Queue storage
Structure
Operations
• Put
• Get
• Peek
• Delete
• Clear
• Update
File service
• Fully managed file share
in cloud
• Can be connected with
every system (Windows,
MacOS, Linux)
Use scenarios
• File server
• Lift and shift
• Cloud development
(sharing application
settings, diagnostic data
and tools)
Structure
• File system
• Consists of file shares
(like blob containers)
Shared Access
Signature (SAS)
• Generated URI
• Permissions for selected
resources
• Time range
• Cannot be directly
canceled
Stored
Access Policy
• Policy with similar
settings as SAS
• SAS can be based on it
• Easily cancelable
• Cannot be set on Storage
Account level (like SAS)
Storage
analytics
• Already defined tables
and blob containers
• 20 TB storage
independent of storage
account limits
• Some analytics
operations are billed
The end

Azure storage

Editor's Notes

  • #25 Demo – portal azure – konkretne zasoby np. Kontener.
  • #26 Demo – portal azure – konkretne zasoby np. Kontener.
  • #27 Demo – portal azure – konkretne zasoby np. Kontener.
  • #28 Demo – portal azure – konkretne zasoby np. Kontener.
  • #30 Demo – portal azure – konkretne zasoby np. Kontener.
  • #32 Demo – portal azure – konkretne zasoby np. Kontener.
  • #40 Demo – portal azure
  • #41 Demo – portal azure – konkretne zasoby np. Kontener.
  • #42 Demo portal azure – pokazać przeglądanie Demo azure storage – pokazać gdzie są przechowywane