Work in Offline First Apps – Sync Datasources with WorkManager.pptx

Work in OfflineFirst Apps – Sync
Data Sources with WorkManager
Musyoka Muasya
@__ciox__
Work Manager
• Recommended for persistent work
• Persistent – Scheduled under app restarts & reboots
• Simple consistent API for background processing
• Send data to backend
• Sync app data with backend
• Built-in threading Coroutines & RxJava
• Delegates process to an internally managed SQLite DB
• Complete closed loop control system
Closed Loop Control System
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Code
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Inputs R(s)
• LocalDatasource
• RemoteDatasource
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Controller
Work Request Types
• Immediate <10mins
• Long Running >10
• Deferrable - Later
Work Policy
• Replace
• Keep
• Append
• Append or
Replace
Constraints
• Network
• Power
• Storage
• Idle
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Feedback
• Notification
• Process Result
• Monitor Progress,
etc
Initialization
Remove App Startup Already
Built In Work Manager
Ref: Customize
WorkManager with
AppStartup & Hilt by Divyansh
Saraswat
Testing
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Work in Offline First Apps – Sync Datasources with WorkManager.pptx
Optimization
Transfer function
𝑇. 𝐹. =
𝑂𝑢𝑡𝑝𝑢𝑡 𝐶 𝑠
𝐼𝑛𝑝𝑢𝑡 𝑅 𝑠
Linear-time invariant for TF
𝐶(𝑠)
𝑅(𝑠)
=
𝑏𝑚𝑠𝑚
+ 𝑏𝑚−1𝑠𝑚−1
+ ⋯ + 𝑏1𝑠 + 𝑏0
𝑎𝑛𝑠𝑛 + 𝑎𝑚−1𝑠𝑛−1 + ⋯ + 𝑎1𝑠 + 𝑎0
Break into Partial Fraction => 2nd order ODE
Solution to the D.E
𝐶(𝑠)
𝑅(𝑠)
=
𝜔𝑛
2
𝑠2 + 2𝜉𝜔𝑛 + 𝜔𝑛
2
𝑠1, 𝑠2 = −𝜉𝜔𝑛 ± 𝑗𝜔𝑛 1 − 𝜉2
System damping
Undamped - 𝜉 = 𝑂
Underdamped - 𝜉 < 1
Critically Damped - 𝜉 = 1
Overdamped - 𝜉 > 1
Thank You
1 de 26

Recomendados

WinOps Conf 2016 - Michael Greene - Release Pipelines por
WinOps Conf 2016 - Michael Greene - Release PipelinesWinOps Conf 2016 - Michael Greene - Release Pipelines
WinOps Conf 2016 - Michael Greene - Release PipelinesWinOps Conf
1.2K vistas45 diapositivas
Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta... por
Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta...Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta...
Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta...AboutYouGmbH
670 vistas27 diapositivas
A data layer in clojure por
A data layer in clojureA data layer in clojure
A data layer in clojureSimon Belak
1K vistas33 diapositivas
Seamless database migration case study - from Firebase real-time database to ... por
Seamless database migration case study - from Firebase real-time database to ...Seamless database migration case study - from Firebase real-time database to ...
Seamless database migration case study - from Firebase real-time database to ...Pin-Ying Tu
77 vistas24 diapositivas
PostgreSQL and Benchmarks por
PostgreSQL and BenchmarksPostgreSQL and Benchmarks
PostgreSQL and BenchmarksJignesh Shah
5.3K vistas38 diapositivas
Sql azure cluster dashboard public.ppt por
Sql azure cluster dashboard public.pptSql azure cluster dashboard public.ppt
Sql azure cluster dashboard public.pptQingsong Yao
688 vistas25 diapositivas

Más contenido relacionado

Similar a Work in Offline First Apps – Sync Datasources with WorkManager.pptx

Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And... por
Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And...Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And...
Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And...Lightbend
23K vistas31 diapositivas
Intro to Apache Apex - Next Gen Platform for Ingest and Transform por
Intro to Apache Apex - Next Gen Platform for Ingest and TransformIntro to Apache Apex - Next Gen Platform for Ingest and Transform
Intro to Apache Apex - Next Gen Platform for Ingest and TransformApache Apex
1.2K vistas30 diapositivas
Database Fundamental Concepts- Series 1 - Performance Analysis por
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDAGEOP LTD
546 vistas57 diapositivas
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ... por
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...Dataconomy Media
1.2K vistas23 diapositivas
Big Data Berlin v8.0 Stream Processing with Apache Apex por
Big Data Berlin v8.0 Stream Processing with Apache Apex Big Data Berlin v8.0 Stream Processing with Apache Apex
Big Data Berlin v8.0 Stream Processing with Apache Apex Apache Apex
1.1K vistas23 diapositivas
Building a Sustainable Data Platform on AWS por
Building a Sustainable Data Platform on AWSBuilding a Sustainable Data Platform on AWS
Building a Sustainable Data Platform on AWSSmartNews, Inc.
19.3K vistas81 diapositivas

Similar a Work in Offline First Apps – Sync Datasources with WorkManager.pptx(20)

Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And... por Lightbend
Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And...Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And...
Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And...
Lightbend23K vistas
Intro to Apache Apex - Next Gen Platform for Ingest and Transform por Apache Apex
Intro to Apache Apex - Next Gen Platform for Ingest and TransformIntro to Apache Apex - Next Gen Platform for Ingest and Transform
Intro to Apache Apex - Next Gen Platform for Ingest and Transform
Apache Apex1.2K vistas
Database Fundamental Concepts- Series 1 - Performance Analysis por DAGEOP LTD
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance Analysis
DAGEOP LTD546 vistas
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ... por Dataconomy Media
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...
Dataconomy Media1.2K vistas
Big Data Berlin v8.0 Stream Processing with Apache Apex por Apache Apex
Big Data Berlin v8.0 Stream Processing with Apache Apex Big Data Berlin v8.0 Stream Processing with Apache Apex
Big Data Berlin v8.0 Stream Processing with Apache Apex
Apache Apex1.1K vistas
Building a Sustainable Data Platform on AWS por SmartNews, Inc.
Building a Sustainable Data Platform on AWSBuilding a Sustainable Data Platform on AWS
Building a Sustainable Data Platform on AWS
SmartNews, Inc.19.3K vistas
Azure saturday pn 2018 por Marco Pozzan
Azure saturday pn 2018Azure saturday pn 2018
Azure saturday pn 2018
Marco Pozzan122 vistas
El camino a las Cloud Native Apps - Introduction por Plain Concepts
El camino a las Cloud Native Apps - IntroductionEl camino a las Cloud Native Apps - Introduction
El camino a las Cloud Native Apps - Introduction
Plain Concepts153 vistas
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex por Apache Apex
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache ApexHadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex
Apache Apex4K vistas
ESPC18 Copenhagen session : Energize your application developments with micro... por serge luca
ESPC18 Copenhagen session : Energize your application developments with micro...ESPC18 Copenhagen session : Energize your application developments with micro...
ESPC18 Copenhagen session : Energize your application developments with micro...
serge luca331 vistas
Hadoop Migration from 0.20.2 to 2.0 por Jabir Ahmed
Hadoop Migration from 0.20.2 to 2.0Hadoop Migration from 0.20.2 to 2.0
Hadoop Migration from 0.20.2 to 2.0
Jabir Ahmed960 vistas
Oracle Database Performance Tuning Basics por nitin anjankar
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basics
nitin anjankar1.6K vistas
Bringing DevOps to Routing with evolved XR: an overview por Cisco DevNet
Bringing DevOps to Routing with evolved XR: an overviewBringing DevOps to Routing with evolved XR: an overview
Bringing DevOps to Routing with evolved XR: an overview
Cisco DevNet490 vistas
ClickHouse in Real Life. Case Studies and Best Practices, by Alexander Zaitsev por Altinity Ltd
ClickHouse in Real Life. Case Studies and Best Practices, by Alexander ZaitsevClickHouse in Real Life. Case Studies and Best Practices, by Alexander Zaitsev
ClickHouse in Real Life. Case Studies and Best Practices, by Alexander Zaitsev
Altinity Ltd3.8K vistas
Journey and evolution of Presto@Grab por Shubham Tagra
Journey and evolution of Presto@GrabJourney and evolution of Presto@Grab
Journey and evolution of Presto@Grab
Shubham Tagra213 vistas
Introduction to Apache Apex by Thomas Weise por Big Data Spain
Introduction to Apache Apex by Thomas WeiseIntroduction to Apache Apex by Thomas Weise
Introduction to Apache Apex by Thomas Weise
Big Data Spain662 vistas
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho por Redis Labs
Stateful Interaction In Serverless Architecture With Redis: Pyounguk ChoStateful Interaction In Serverless Architecture With Redis: Pyounguk Cho
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho
Redis Labs457 vistas

Último

Pitchbook Repowerlab.pdf por
Pitchbook Repowerlab.pdfPitchbook Repowerlab.pdf
Pitchbook Repowerlab.pdfVictoriaGaleano
9 vistas12 diapositivas
PIT Interpretation - Use only PIT-W EN.ppt por
PIT Interpretation - Use only PIT-W EN.pptPIT Interpretation - Use only PIT-W EN.ppt
PIT Interpretation - Use only PIT-W EN.pptRabindra Shrestha
5 vistas45 diapositivas
Renewal Projects in Seismic Construction por
Renewal Projects in Seismic ConstructionRenewal Projects in Seismic Construction
Renewal Projects in Seismic ConstructionEngineering & Seismic Construction
8 vistas8 diapositivas
CPM Schedule Float.pptx por
CPM Schedule Float.pptxCPM Schedule Float.pptx
CPM Schedule Float.pptxMathew Joseph
8 vistas5 diapositivas
GDSC Mikroskil Members Onboarding 2023.pdf por
GDSC Mikroskil Members Onboarding 2023.pdfGDSC Mikroskil Members Onboarding 2023.pdf
GDSC Mikroskil Members Onboarding 2023.pdfgdscmikroskil
72 vistas62 diapositivas
taylor-2005-classical-mechanics.pdf por
taylor-2005-classical-mechanics.pdftaylor-2005-classical-mechanics.pdf
taylor-2005-classical-mechanics.pdfArturoArreola10
37 vistas808 diapositivas

Último(20)

GDSC Mikroskil Members Onboarding 2023.pdf por gdscmikroskil
GDSC Mikroskil Members Onboarding 2023.pdfGDSC Mikroskil Members Onboarding 2023.pdf
GDSC Mikroskil Members Onboarding 2023.pdf
gdscmikroskil72 vistas
taylor-2005-classical-mechanics.pdf por ArturoArreola10
taylor-2005-classical-mechanics.pdftaylor-2005-classical-mechanics.pdf
taylor-2005-classical-mechanics.pdf
ArturoArreola1037 vistas
Details of Acoustic Liner for selection of material por rafiqalisyed
Details of Acoustic Liner for selection of materialDetails of Acoustic Liner for selection of material
Details of Acoustic Liner for selection of material
rafiqalisyed5 vistas
Solution Challenge Introduction.pptx por GDSCCEC
Solution Challenge Introduction.pptxSolution Challenge Introduction.pptx
Solution Challenge Introduction.pptx
GDSCCEC13 vistas
Programmable Switches for Programmable Logic Devices por Usha Mehta
Programmable Switches for Programmable Logic DevicesProgrammable Switches for Programmable Logic Devices
Programmable Switches for Programmable Logic Devices
Usha Mehta19 vistas
Web Dev Session 1.pptx por VedVekhande
Web Dev Session 1.pptxWeb Dev Session 1.pptx
Web Dev Session 1.pptx
VedVekhande23 vistas
Programmable Logic Devices : SPLD and CPLD por Usha Mehta
Programmable Logic Devices : SPLD and CPLDProgrammable Logic Devices : SPLD and CPLD
Programmable Logic Devices : SPLD and CPLD
Usha Mehta27 vistas
Building source code level profiler for C++.pdf por ssuser28de9e
Building source code level profiler for C++.pdfBuilding source code level profiler for C++.pdf
Building source code level profiler for C++.pdf
ssuser28de9e10 vistas
MongoDB.pdf por ArthyR3
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
ArthyR351 vistas
Different type of computer networks .pptx por nazmul1514788
Different  type of computer networks .pptxDifferent  type of computer networks .pptx
Different type of computer networks .pptx
nazmul151478819 vistas
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc... por csegroupvn
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
Design of Structures and Foundations for Vibrating Machines, Arya-ONeill-Pinc...
csegroupvn16 vistas

Work in Offline First Apps – Sync Datasources with WorkManager.pptx

Notas del editor

  1. Laplace transform