In this talk we will discuss uses of BSON outside of MongoDB -- for example for IPC in web services infrastructure and mobile applications. Some standalone BSON command line utilities will be demoed.
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Using BSON Beyond MongoDB
1. BSON – it’s not just for
databases?
Dwight Merriman
www.bsonspec.org
2. What should we use as a serialization format for
data / objects / documents in the modern
organization?
3. What should we use as a serialization format for
data / objects / documents in the modern
organization?
• XML?
• Protocol Buffers?
• Thrift?
• JSON?
• BSON?
4. New Requirements
• Flexible & Unstructured Data
• Multi-tier non-monolithic systems
• Service oriented architectures
• Disconnected devices, distribution (e.g.
phones)
5. Things we might want
• Performance
• Readability
• Standards
• Implementations for all programming
languages
• Dynamic schema support
6. { x : “aa”,
…
}
Things we might want
• Dynamic schema support
Service
A
Service
B
Service
C Service
D
Client
7. Things we might want
• Dynamic schema support
Service
A
Service
B
Service
C Service
D
Client
{ x : “aa”,
…
}
8. { x : “aa”,
…
}
Things we might want
• Dynamic schema support
Service
A’
Service
B
Service
C’ Service
D
Client
{ x : “aa”,
_new : 3
}
9. Things we might want
• Performance
• Readability
• Standards
• Implementations for all programming
languages
• Dynamic schema support
10. BSON
• www.bsonspec.org
• “Binary JSON”
– http://tools.ietf.org/html/rfc7159
• Goals were:
– A few extra data types, mainly:
• Date
• ByteArray
– Fast scan-ability
• Some other benefits too