Slide 33
Slide 33 text
Blob
Storage
Responsibili@es:
CRUD
for
binary
large
objects
Things
to
consider:
Use
GridFS!
Make
Blobs
immutable
so
they
are
idempotent
-‐
Use
internally
generated
id
for
filename
-‐
Two
phase
write
–
local
disk
first,
then
GridFS
Make
GridFS
filenames
self
describing
-‐
Embed
type
on
end
of
filename
-‐
Embed
encoding
as
extension
(.gzip,
.zip,
etc)
Use
GridFS
metadata
to
further
describe
blob
Store
GridFS
filename
as
an
ajribute
of
a
domain
model
en@ty