SlideShare a Scribd company logo
Bringing Data
to the Edge
Everything is connected
Dirk Gently
Hello daho.am :)
• Local event
Decentralized
Efficient information exchange
Connects local people
• Local data at the edge
Decentralized
Efficient information exchange
Connects local devices
Mobile Data – My personal Journey
• Previous life: enterprise stuff
Java, expensive DBs, SQL, O/R Mappers (ORMs)
• Apps, build two mobile ORMs on top of SQLite
Object lover, never a fan of SQL, respect for SQLite
• "We can do better than that"
ObjectBox – founder and CTO
What is the "Edge" and Edge Computing?
• Nothing really new
• Edge: devices on the edge of the Internet
E.g. mobile phones, desktops, IoT devices
• Edge gateways
Servers living on the edge
• Locality is a good thing
Goal: provide better solutions directly at the edge
And what's "Fog Computing"?
• Sometimes used in the same context (EC)
• "A hierarchic cloud"
Bring computing and data closer to the edge
• Locality levels
E.g. building, city block, city, …
So, what's wrong with the Cloud?
Nothing really.
It's just a little overused.
42
Life
Universe Everything
Cloud
Web
Mobile IoT
But are we asking
the right Question?
What happened to "It depends"?
• Cloud == 42?
• The universal answer of IT people: "It depends"
Complex stuff, 1000 different solutions
• Optimal solutions depend on the use case
• When is the Cloud the best solution?
It depends!
Cloud Advantages
• Vs. servers: scale & redundancy
Less to worry about, "managed" & less down time
• Central processing is simple
(Mostly) consistent state, easy to monitor, etc.
• Implementing logic just once
Clients just call an interface (e.g. Web/REST)
Cloud Disadvantages
• Central everything
Controlled by big companies (governments?)
Hack-able: one breach – millions affected
Who owns my data? Does private data exist?
• Depends on network
Clients are dead when offline, latency
• Cloud costs
Cloud adds Latency
• (Near) Real time requirements
E.g. Industrial setting
Cloud not an option
Cloud Costs for Apps
• Medium app, 150k monthly users
• Significant work to reduce cloud time
3 caching layers on the cloud side
• US $400-500 per month
• Wouldn't be affordable without caches
Also on-device database with "conditional gets"
• Big apps often spend > $100K per year on cloud
Cloud costs: IoT
• Source: CTO of an IoT company
• Single application, huge amount of sensor data
• Local K/V cache to mitigate costs
• Multiple € 100K per month
• "Cloud costs are a problem"
Very hard to make a project profitable
Is the Cloud the new Mainframe?
• Once upon a time…
• You could submit "jobs" to mainframes
• "Jobs" moved to desktop computers
• It happened before and it will happen again
• Move "Jobs" to the edge
Utilizing the Edge
• While you wait for the cloud…
• What are client devices doing?
• Nothing!
Waiting == wasting resources
• Edge computing is resourceful
Using the powerful resources we already have
Data on the Edge – local Data is good Data
• Upload of all data is often wasteful
Example: IoT sensors
Preprocessing & only upload what's needed
• Data that doesn't leave the edge
Private data stays "in the house"
• Again: Edge computing is resourceful
Decrease traffic & increase privacy
Moving to the Edge
Cloud:
Compute
& Data
Cloud ClientClient
Cloud:
(Compute
& Data)
Edge Edge Device:
Data & Compute
Edge Device:
Data & Compute
Cloud:
(Compute
& Data)
Edge*
Edge
Gateway:
Data &
Compute
Client
Edge Device:
Data & Compute
Simple Example: In-App Search is already EC
• App with some kind of catalog
E.g. news, TV data, messages, …
• Sync all (relevant) data to device
Archive could stay in the cloud
• Search data at the edge
Functionality at the device, not in the cloud
Edge Computing & IoT
IoT devices
• More devices than humans
Likely to double in the next few years
• Big range of technical capability
From wearables to seriously powered devices
• The typical "dumb" device
Sends sensor data to the cloud
From IoT to EoT
• Does an "Internet of Things" make sense?
Again: it depends
• Edge of Things
"Internet exposure considered harmful"
• Smart home, edge version
Local area network
Optional gateway to the cloud
Decide what to share
Bringing Data to the Edge: Challenges
• Distributed data
Local data, some of it must be synchronized
• Keeping data in sync is complex
Concurrent edits, conflicts, …
• More data stored on device
Higher capacity needed (e.g. flash memory)
Data storage needs to scale (performance)
Status quo for getting Data to the Edge
• REST based APIs (or GraphQL)
Typically return JSON data
• No standard to store returned data
E.g. custom logic to insert into a SQL database
• Requests often fetch all data
Often redundant and inefficient
Data Sync is a Key Technology
for Edge Computing
Data Synchronization
• Generic approach to keep data up-to-date
Pushing updates two way
• Offline support
When not connected: queue updates for later
• Delta synchronization
Sending only deltas is much more efficient
• Conflict resolution
git: Good Example of Distributed Data
• Decentralized
• History is not linear
Branches introduce another dimension
• Merge operations
Automatic, or manual conflict handling
• git concepts  data synchronization?
Makes a pretty good starting point
git & Crypto: more Inspiration
• Chain of cryptographic hashes
Content is hashed
Previous commit hash is part of the hash
• Tampering data would break the hash chain
Considered a different branch, easy to track down
• Optional: signing
E.g. prove that a commit comes from you
Data Synchronization Implementation
• Transaction based databases
A transaction is a list of actions
• A transaction is a state transition
Actions & data can be stored in a log
• Each state should be identifiable (ID)
Enable clients to pick up from previous state
(aka delta synchronization)
Data Synchronization Implementation
• State ID can be a hash
Yep, just like git…
• State transition A  B with transaction log TXL
hash(B) = hash(hash(A) + hash(TXL))
• Chain of hashes
• Clients can pick up from their last hash ID
Delta sync unlocked
How about…
100% Decentralized?
Full Decentralization – Though Challenges
• Anarchy and Chaos?
No central instance may/can control/interfere
• Data bubbles
Data gets separated and inconsistent
• Trust issues
Which peers to trust?
Blockchain!
The new silver bullet…
Blockchain is a DB
Decentralized P2P, public, crypto-based
Blockchain Achievements
• Alternative investments & a new mining industry
Eventually also new currencies
• Smart contracts
"If this then that" - combining data and code
• Crypto is cool again
• Working well enough
Showed the world that there are alternatives
Blockchain Tech
• Block of transactions
Merkle tree to produce a hash
• Diverging data/history
One branch is selected using a scoring model
(e.g. longest chain)
• Proof-of-work
Calc nonce to find special hash(content + nonce)
Blockchain Tech – the Dark Side
• Decentralized consensus: ridiculously inefficient
Compared to central instance approval
• Proof of work: "useless" expensive computation
Redundantly done by thousands of miner nodes
• Nonce lottery is like "wasting" ~99.99% of energy
• Effects on the environment?
• (Today's) blockchain is not the end of the journey
Data Sync vs. Blockchain
• Implementations can share concepts
Transactions, chained hashes
• Key difference: consensus and trust
Centralized vs. decentralized
• Centralized consensus is preferred for apps
Producing companies "own" their apps
(Efficiency restored… )
What we are working on
ObjectBox – a Database for the Edge
• "A DropBox for data objects"
Allows to work offline
• We start at the edge: embedded database
Based on objects and relations
Sync: stored bytes can be sent and applied 1:1
• Simplicity and efficiency
Guiding principles
ObjectBox
• Runs on mobile, desktop, IoT devices
Android, Linux, Windows, i/MacOS, Raspberry, …
• Low footprint: less than 1 MB
• 10x faster CRUD operations
Outperforms SQLite, fastest embedded DB
• ACID compliant
ObjectBox
• Objects all the way through
No transformations required
(no SQL, no REST/JSON parsing)
• Convenience at K/V store speed
Indexing, queries, relations
• ObjectBox 2.0 Release
25th July 2018
Wrapping up
Edge Computing - the Golden Hybrid?
Centralized Decentralized
Server
Cloud
Peer-to-Peer
Edge
"Super Peers"
Data Dimensions
• Data localilty
Cloud, edge-only, shared cloud-edge
• Online vs. offline data
Online-only cloud, offline: synced or edge-only
• Consensus: which data prevails?
Central authority, decentralized heuristics
Questions to ask
• Who owns "my data"?
Can data be private at all?
• How much (de)centralization do you need?
What works best for your use case?
• How can we make efficiency a virtue again?
Can efficiency reduces your costs too?
Thanks! 🐬🐬
Contact:
markus @ objectbox.io
Follow me:
@greenrobot_de

More Related Content

What's hot

Object Based Storage
Object Based StorageObject Based Storage
Object Based Storage
EMC
 
Clouding computing
Clouding computingClouding computing
Clouding computing
pallavi38
 
Big Data Application Architectures - IoT
Big Data Application Architectures - IoTBig Data Application Architectures - IoT
Big Data Application Architectures - IoT
DataWorks Summit/Hadoop Summit
 
Smart Document Screening
Smart Document ScreeningSmart Document Screening
Smart Document Screening
StenWery
 
Cloud computing overview
Cloud computing overviewCloud computing overview
Cloud computing overview
daklug
 
Survey of Big Data Infrastructures
Survey of Big Data InfrastructuresSurvey of Big Data Infrastructures
Survey of Big Data Infrastructures
m.a.kirn
 
Netflix Teradata partner's presentation
Netflix Teradata partner's presentationNetflix Teradata partner's presentation
Netflix Teradata partner's presentation
Vishal Jain
 
Is a Move to the Cloud Good or Bad for I.T?
Is a Move to the Cloud Good or Bad for I.T?Is a Move to the Cloud Good or Bad for I.T?
Is a Move to the Cloud Good or Bad for I.T?
Interactive Intelligence
 
Reinventing Identity and Access Management with Graph Databases
Reinventing Identity and Access Management with Graph DatabasesReinventing Identity and Access Management with Graph Databases
Reinventing Identity and Access Management with Graph Databases
Rik Van Bruggen
 
7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final
7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final
7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final
Peter de Haas
 
Cloud computing
Cloud computing Cloud computing
Cloud computing
Muhammad Yaqoob
 
cloud computing.....
cloud computing.....cloud computing.....
cloud computing.....
Gopibabu Srungavarapu
 
Storage as a service v4 eng
Storage as a service v4 engStorage as a service v4 eng
Storage as a service v4 eng
Dell EMC
 
RightScale Webinar: Hybrid Cloud Fundamentals and Lessons Learned
RightScale Webinar: Hybrid Cloud Fundamentals and Lessons LearnedRightScale Webinar: Hybrid Cloud Fundamentals and Lessons Learned
RightScale Webinar: Hybrid Cloud Fundamentals and Lessons Learned
RightScale
 
TechEvent Building a Data Lake
TechEvent Building a Data LakeTechEvent Building a Data Lake
TechEvent Building a Data Lake
Trivadis
 
Cloud computing
Cloud computingCloud computing
Cloud computing
Rohit Sarkar
 
Microsoft_SpecialReport
Microsoft_SpecialReportMicrosoft_SpecialReport
Microsoft_SpecialReportKeith Olinger
 
Dave's Cloud
Dave's CloudDave's Cloud
Dave's Cloud
Dave Northey
 

What's hot (20)

Object Based Storage
Object Based StorageObject Based Storage
Object Based Storage
 
Clouding computing
Clouding computingClouding computing
Clouding computing
 
Big Data Application Architectures - IoT
Big Data Application Architectures - IoTBig Data Application Architectures - IoT
Big Data Application Architectures - IoT
 
Smart Document Screening
Smart Document ScreeningSmart Document Screening
Smart Document Screening
 
Cloud computing overview
Cloud computing overviewCloud computing overview
Cloud computing overview
 
Survey of Big Data Infrastructures
Survey of Big Data InfrastructuresSurvey of Big Data Infrastructures
Survey of Big Data Infrastructures
 
Netflix Teradata partner's presentation
Netflix Teradata partner's presentationNetflix Teradata partner's presentation
Netflix Teradata partner's presentation
 
Is a Move to the Cloud Good or Bad for I.T?
Is a Move to the Cloud Good or Bad for I.T?Is a Move to the Cloud Good or Bad for I.T?
Is a Move to the Cloud Good or Bad for I.T?
 
Reinventing Identity and Access Management with Graph Databases
Reinventing Identity and Access Management with Graph DatabasesReinventing Identity and Access Management with Graph Databases
Reinventing Identity and Access Management with Graph Databases
 
7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final
7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final
7 12-2010 - UU - Microsoft Cloud Services - peter de haas -final
 
Cloud computing
Cloud computing Cloud computing
Cloud computing
 
cloud computing.....
cloud computing.....cloud computing.....
cloud computing.....
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Storage as a service v4 eng
Storage as a service v4 engStorage as a service v4 eng
Storage as a service v4 eng
 
RightScale Webinar: Hybrid Cloud Fundamentals and Lessons Learned
RightScale Webinar: Hybrid Cloud Fundamentals and Lessons LearnedRightScale Webinar: Hybrid Cloud Fundamentals and Lessons Learned
RightScale Webinar: Hybrid Cloud Fundamentals and Lessons Learned
 
TechEvent Building a Data Lake
TechEvent Building a Data LakeTechEvent Building a Data Lake
TechEvent Building a Data Lake
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Cloud computingjun28
Cloud computingjun28Cloud computingjun28
Cloud computingjun28
 
Microsoft_SpecialReport
Microsoft_SpecialReportMicrosoft_SpecialReport
Microsoft_SpecialReport
 
Dave's Cloud
Dave's CloudDave's Cloud
Dave's Cloud
 

Similar to Bringing Data to the Edge

Azure Digital Twins
Azure Digital TwinsAzure Digital Twins
Azure Digital Twins
Marco Parenzan
 
Kalix: Tackling the The Cloud to Edge Continuum
Kalix: Tackling the The Cloud to Edge ContinuumKalix: Tackling the The Cloud to Edge Continuum
Kalix: Tackling the The Cloud to Edge Continuum
Jonas Bonér
 
Cloudy with a chance of genealogy
Cloudy with a chance of genealogyCloudy with a chance of genealogy
Cloudy with a chance of genealogy
Dick Eastman
 
Edge computing
Edge computingEdge computing
Edge computing
pramiidhaaavula
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
Aniekan Akpaffiong
 
Edge Comp.pptx
Edge Comp.pptxEdge Comp.pptx
Edge Comp.pptx
drth5
 
Edge comp
Edge compEdge comp
Edge comp
mahendra665237
 
A non-technical introduction to Cloud Computing
A non-technical introduction to Cloud ComputingA non-technical introduction to Cloud Computing
A non-technical introduction to Cloud Computing
William Pourmajidi
 
Fog computing
Fog computingFog computing
Fog computing
Rishabh Kumar ☁️
 
The Future is Here
The Future is HereThe Future is Here
The Future is Here
Jeff Bramwell
 
Cloud Computing.pptx
Cloud Computing.pptxCloud Computing.pptx
Cloud Computing.pptx
TabassumMaktum
 
OSS Presentation Keynote by Jason Hoffman
OSS Presentation Keynote by Jason HoffmanOSS Presentation Keynote by Jason Hoffman
OSS Presentation Keynote by Jason HoffmanOpenStorageSummit
 
The Internet-of-things: Architecting for the deluge of data
The Internet-of-things: Architecting for the deluge of dataThe Internet-of-things: Architecting for the deluge of data
The Internet-of-things: Architecting for the deluge of data
bcantrill
 
(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data
(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data
(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data
Amazon Web Services
 
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Achim Friedland
 
Azure Digital Twins
Azure Digital TwinsAzure Digital Twins
Azure Digital Twins
Marco Parenzan
 
Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...
Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...
Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...
CA Nimsoft
 
IoT and Big Data
IoT and Big DataIoT and Big Data
IoT and Big Data
sabnees
 
Financial impact of Cloud Computing
Financial impact of Cloud ComputingFinancial impact of Cloud Computing
Financial impact of Cloud Computing
krisbliesner
 

Similar to Bringing Data to the Edge (20)

Azure Digital Twins
Azure Digital TwinsAzure Digital Twins
Azure Digital Twins
 
Kalix: Tackling the The Cloud to Edge Continuum
Kalix: Tackling the The Cloud to Edge ContinuumKalix: Tackling the The Cloud to Edge Continuum
Kalix: Tackling the The Cloud to Edge Continuum
 
Cloudy with a chance of genealogy
Cloudy with a chance of genealogyCloudy with a chance of genealogy
Cloudy with a chance of genealogy
 
Edge computing
Edge computingEdge computing
Edge computing
 
Internet of Things
Internet of ThingsInternet of Things
Internet of Things
 
Edge Comp.pptx
Edge Comp.pptxEdge Comp.pptx
Edge Comp.pptx
 
Edge Comp.pptx
Edge Comp.pptxEdge Comp.pptx
Edge Comp.pptx
 
Edge comp
Edge compEdge comp
Edge comp
 
A non-technical introduction to Cloud Computing
A non-technical introduction to Cloud ComputingA non-technical introduction to Cloud Computing
A non-technical introduction to Cloud Computing
 
Fog computing
Fog computingFog computing
Fog computing
 
The Future is Here
The Future is HereThe Future is Here
The Future is Here
 
Cloud Computing.pptx
Cloud Computing.pptxCloud Computing.pptx
Cloud Computing.pptx
 
OSS Presentation Keynote by Jason Hoffman
OSS Presentation Keynote by Jason HoffmanOSS Presentation Keynote by Jason Hoffman
OSS Presentation Keynote by Jason Hoffman
 
The Internet-of-things: Architecting for the deluge of data
The Internet-of-things: Architecting for the deluge of dataThe Internet-of-things: Architecting for the deluge of data
The Internet-of-things: Architecting for the deluge of data
 
(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data
(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data
(STG308) How EA, State Of Texas & H3 Biomedicine Protect Data
 
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
Can the e-Mobility Charging Infrastructure be a Blueprint for other IoT Proje...
 
Azure Digital Twins
Azure Digital TwinsAzure Digital Twins
Azure Digital Twins
 
Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...
Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...
Managing infrastructure for an Internet of Things, Rachel Chalmers n•fluence ...
 
IoT and Big Data
IoT and Big DataIoT and Big Data
IoT and Big Data
 
Financial impact of Cloud Computing
Financial impact of Cloud ComputingFinancial impact of Cloud Computing
Financial impact of Cloud Computing
 

Recently uploaded

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
Matthew Sinclair
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
Peter Spielvogel
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
Adtran
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
Aftab Hussain
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Nexer Digital
 

Recently uploaded (20)

20240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 202420240605 QFM017 Machine Intelligence Reading List May 2024
20240605 QFM017 Machine Intelligence Reading List May 2024
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdfSAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
SAP Sapphire 2024 - ASUG301 building better apps with SAP Fiori.pdf
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
Pushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 daysPushing the limits of ePRTC: 100ns holdover for 100 days
Pushing the limits of ePRTC: 100ns holdover for 100 days
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Removing Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software FuzzingRemoving Uninteresting Bytes in Software Fuzzing
Removing Uninteresting Bytes in Software Fuzzing
 
Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?Elizabeth Buie - Older adults: Are we really designing for our future selves?
Elizabeth Buie - Older adults: Are we really designing for our future selves?
 

Bringing Data to the Edge

  • 3. Hello daho.am :) • Local event Decentralized Efficient information exchange Connects local people • Local data at the edge Decentralized Efficient information exchange Connects local devices
  • 4. Mobile Data – My personal Journey • Previous life: enterprise stuff Java, expensive DBs, SQL, O/R Mappers (ORMs) • Apps, build two mobile ORMs on top of SQLite Object lover, never a fan of SQL, respect for SQLite • "We can do better than that" ObjectBox – founder and CTO
  • 5. What is the "Edge" and Edge Computing? • Nothing really new • Edge: devices on the edge of the Internet E.g. mobile phones, desktops, IoT devices • Edge gateways Servers living on the edge • Locality is a good thing Goal: provide better solutions directly at the edge
  • 6. And what's "Fog Computing"? • Sometimes used in the same context (EC) • "A hierarchic cloud" Bring computing and data closer to the edge • Locality levels E.g. building, city block, city, …
  • 7. So, what's wrong with the Cloud? Nothing really. It's just a little overused.
  • 10. But are we asking the right Question?
  • 11. What happened to "It depends"? • Cloud == 42? • The universal answer of IT people: "It depends" Complex stuff, 1000 different solutions • Optimal solutions depend on the use case • When is the Cloud the best solution? It depends!
  • 12. Cloud Advantages • Vs. servers: scale & redundancy Less to worry about, "managed" & less down time • Central processing is simple (Mostly) consistent state, easy to monitor, etc. • Implementing logic just once Clients just call an interface (e.g. Web/REST)
  • 13. Cloud Disadvantages • Central everything Controlled by big companies (governments?) Hack-able: one breach – millions affected Who owns my data? Does private data exist? • Depends on network Clients are dead when offline, latency • Cloud costs
  • 14. Cloud adds Latency • (Near) Real time requirements E.g. Industrial setting Cloud not an option
  • 15. Cloud Costs for Apps • Medium app, 150k monthly users • Significant work to reduce cloud time 3 caching layers on the cloud side • US $400-500 per month • Wouldn't be affordable without caches Also on-device database with "conditional gets" • Big apps often spend > $100K per year on cloud
  • 16. Cloud costs: IoT • Source: CTO of an IoT company • Single application, huge amount of sensor data • Local K/V cache to mitigate costs • Multiple € 100K per month • "Cloud costs are a problem" Very hard to make a project profitable
  • 17. Is the Cloud the new Mainframe? • Once upon a time… • You could submit "jobs" to mainframes • "Jobs" moved to desktop computers • It happened before and it will happen again • Move "Jobs" to the edge
  • 18. Utilizing the Edge • While you wait for the cloud… • What are client devices doing? • Nothing! Waiting == wasting resources • Edge computing is resourceful Using the powerful resources we already have
  • 19. Data on the Edge – local Data is good Data • Upload of all data is often wasteful Example: IoT sensors Preprocessing & only upload what's needed • Data that doesn't leave the edge Private data stays "in the house" • Again: Edge computing is resourceful Decrease traffic & increase privacy
  • 21. Cloud: Compute & Data Cloud ClientClient Cloud: (Compute & Data) Edge Edge Device: Data & Compute Edge Device: Data & Compute Cloud: (Compute & Data) Edge* Edge Gateway: Data & Compute Client Edge Device: Data & Compute
  • 22. Simple Example: In-App Search is already EC • App with some kind of catalog E.g. news, TV data, messages, … • Sync all (relevant) data to device Archive could stay in the cloud • Search data at the edge Functionality at the device, not in the cloud
  • 24. IoT devices • More devices than humans Likely to double in the next few years • Big range of technical capability From wearables to seriously powered devices • The typical "dumb" device Sends sensor data to the cloud
  • 25. From IoT to EoT • Does an "Internet of Things" make sense? Again: it depends • Edge of Things "Internet exposure considered harmful" • Smart home, edge version Local area network Optional gateway to the cloud Decide what to share
  • 26. Bringing Data to the Edge: Challenges • Distributed data Local data, some of it must be synchronized • Keeping data in sync is complex Concurrent edits, conflicts, … • More data stored on device Higher capacity needed (e.g. flash memory) Data storage needs to scale (performance)
  • 27. Status quo for getting Data to the Edge • REST based APIs (or GraphQL) Typically return JSON data • No standard to store returned data E.g. custom logic to insert into a SQL database • Requests often fetch all data Often redundant and inefficient
  • 28. Data Sync is a Key Technology for Edge Computing
  • 29. Data Synchronization • Generic approach to keep data up-to-date Pushing updates two way • Offline support When not connected: queue updates for later • Delta synchronization Sending only deltas is much more efficient • Conflict resolution
  • 30. git: Good Example of Distributed Data • Decentralized • History is not linear Branches introduce another dimension • Merge operations Automatic, or manual conflict handling • git concepts  data synchronization? Makes a pretty good starting point
  • 31.
  • 32.
  • 33.
  • 34. git & Crypto: more Inspiration • Chain of cryptographic hashes Content is hashed Previous commit hash is part of the hash • Tampering data would break the hash chain Considered a different branch, easy to track down • Optional: signing E.g. prove that a commit comes from you
  • 35. Data Synchronization Implementation • Transaction based databases A transaction is a list of actions • A transaction is a state transition Actions & data can be stored in a log • Each state should be identifiable (ID) Enable clients to pick up from previous state (aka delta synchronization)
  • 36. Data Synchronization Implementation • State ID can be a hash Yep, just like git… • State transition A  B with transaction log TXL hash(B) = hash(hash(A) + hash(TXL)) • Chain of hashes • Clients can pick up from their last hash ID Delta sync unlocked
  • 38. Full Decentralization – Though Challenges • Anarchy and Chaos? No central instance may/can control/interfere • Data bubbles Data gets separated and inconsistent • Trust issues Which peers to trust?
  • 40. Blockchain is a DB Decentralized P2P, public, crypto-based
  • 41. Blockchain Achievements • Alternative investments & a new mining industry Eventually also new currencies • Smart contracts "If this then that" - combining data and code • Crypto is cool again • Working well enough Showed the world that there are alternatives
  • 42. Blockchain Tech • Block of transactions Merkle tree to produce a hash • Diverging data/history One branch is selected using a scoring model (e.g. longest chain) • Proof-of-work Calc nonce to find special hash(content + nonce)
  • 43. Blockchain Tech – the Dark Side • Decentralized consensus: ridiculously inefficient Compared to central instance approval • Proof of work: "useless" expensive computation Redundantly done by thousands of miner nodes • Nonce lottery is like "wasting" ~99.99% of energy • Effects on the environment? • (Today's) blockchain is not the end of the journey
  • 44. Data Sync vs. Blockchain • Implementations can share concepts Transactions, chained hashes • Key difference: consensus and trust Centralized vs. decentralized • Centralized consensus is preferred for apps Producing companies "own" their apps (Efficiency restored… )
  • 45. What we are working on
  • 46. ObjectBox – a Database for the Edge • "A DropBox for data objects" Allows to work offline • We start at the edge: embedded database Based on objects and relations Sync: stored bytes can be sent and applied 1:1 • Simplicity and efficiency Guiding principles
  • 47. ObjectBox • Runs on mobile, desktop, IoT devices Android, Linux, Windows, i/MacOS, Raspberry, … • Low footprint: less than 1 MB • 10x faster CRUD operations Outperforms SQLite, fastest embedded DB • ACID compliant
  • 48. ObjectBox • Objects all the way through No transformations required (no SQL, no REST/JSON parsing) • Convenience at K/V store speed Indexing, queries, relations • ObjectBox 2.0 Release 25th July 2018
  • 50. Edge Computing - the Golden Hybrid? Centralized Decentralized Server Cloud Peer-to-Peer Edge "Super Peers"
  • 51. Data Dimensions • Data localilty Cloud, edge-only, shared cloud-edge • Online vs. offline data Online-only cloud, offline: synced or edge-only • Consensus: which data prevails? Central authority, decentralized heuristics
  • 52. Questions to ask • Who owns "my data"? Can data be private at all? • How much (de)centralization do you need? What works best for your use case? • How can we make efficiency a virtue again? Can efficiency reduces your costs too?
  • 53. Thanks! 🐬🐬 Contact: markus @ objectbox.io Follow me: @greenrobot_de