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 sur 26

Recommandé

WinOps Conf 2016 - Michael Greene - Release Pipelines par
WinOps Conf 2016 - Michael Greene - Release PipelinesWinOps Conf 2016 - Michael Greene - Release Pipelines
WinOps Conf 2016 - Michael Greene - Release PipelinesWinOps Conf
1.2K vues45 diapositives
Artur Borycki - Beyond Lambda - how to get from logical to physical - code.ta... par
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 vues27 diapositives
A data layer in clojure par
A data layer in clojureA data layer in clojure
A data layer in clojureSimon Belak
1K vues33 diapositives
Seamless database migration case study - from Firebase real-time database to ... par
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 vues24 diapositives
PostgreSQL and Benchmarks par
PostgreSQL and BenchmarksPostgreSQL and Benchmarks
PostgreSQL and BenchmarksJignesh Shah
5.3K vues38 diapositives
Sql azure cluster dashboard public.ppt par
Sql azure cluster dashboard public.pptSql azure cluster dashboard public.ppt
Sql azure cluster dashboard public.pptQingsong Yao
688 vues25 diapositives

Contenu connexe

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

Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And... par
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 vues31 diapositives
Intro to Apache Apex - Next Gen Platform for Ingest and Transform par
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 vues30 diapositives
Database Fundamental Concepts- Series 1 - Performance Analysis par
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance AnalysisDAGEOP LTD
546 vues57 diapositives
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ... par
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 vues23 diapositives
Big Data Berlin v8.0 Stream Processing with Apache Apex par
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 vues23 diapositives
Building a Sustainable Data Platform on AWS par
Building a Sustainable Data Platform on AWSBuilding a Sustainable Data Platform on AWS
Building a Sustainable Data Platform on AWSSmartNews, Inc.
19.3K vues81 diapositives

Similaire à Work in Offline First Apps – Sync Datasources with WorkManager.pptx(20)

Lessons Learned From PayPal: Implementing Back-Pressure With Akka Streams And... par 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 vues
Intro to Apache Apex - Next Gen Platform for Ingest and Transform par 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 vues
Database Fundamental Concepts- Series 1 - Performance Analysis par DAGEOP LTD
Database Fundamental Concepts- Series 1 - Performance AnalysisDatabase Fundamental Concepts- Series 1 - Performance Analysis
Database Fundamental Concepts- Series 1 - Performance Analysis
DAGEOP LTD546 vues
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ... par 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 vues
Big Data Berlin v8.0 Stream Processing with Apache Apex par 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 vues
Building a Sustainable Data Platform on AWS par 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 vues
El camino a las Cloud Native Apps - Introduction par 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 vues
Hadoop Summit SJ 2016: Next Gen Big Data Analytics with Apache Apex par 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 vues
ESPC18 Copenhagen session : Energize your application developments with micro... par 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 vues
Hadoop Migration from 0.20.2 to 2.0 par 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 vues
Oracle Database Performance Tuning Basics par nitin anjankar
Oracle Database Performance Tuning BasicsOracle Database Performance Tuning Basics
Oracle Database Performance Tuning Basics
nitin anjankar1.6K vues
Bringing DevOps to Routing with evolved XR: an overview par 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 vues
ClickHouse in Real Life. Case Studies and Best Practices, by Alexander Zaitsev par 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 vues
Journey and evolution of Presto@Grab par Shubham Tagra
Journey and evolution of Presto@GrabJourney and evolution of Presto@Grab
Journey and evolution of Presto@Grab
Shubham Tagra213 vues
Introduction to Apache Apex by Thomas Weise par 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 vues
Stateful Interaction In Serverless Architecture With Redis: Pyounguk Cho par 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 vues

Dernier

Basic Design Flow for Field Programmable Gate Arrays par
Basic Design Flow for Field Programmable Gate ArraysBasic Design Flow for Field Programmable Gate Arrays
Basic Design Flow for Field Programmable Gate ArraysUsha Mehta
24 vues21 diapositives
Integrating Sustainable Development Goals (SDGs) in School Education par
Integrating Sustainable Development Goals (SDGs) in School EducationIntegrating Sustainable Development Goals (SDGs) in School Education
Integrating Sustainable Development Goals (SDGs) in School EducationSheetalTank1
20 vues29 diapositives
Renewal Projects in Seismic Construction par
Renewal Projects in Seismic ConstructionRenewal Projects in Seismic Construction
Renewal Projects in Seismic ConstructionEngineering & Seismic Construction
12 vues8 diapositives
REPORT Data Science EXPERT LECTURE.doc par
REPORT Data Science EXPERT LECTURE.docREPORT Data Science EXPERT LECTURE.doc
REPORT Data Science EXPERT LECTURE.docParulkhatri11
7 vues9 diapositives
2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf par
2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf
2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdfPhilipp Daum
6 vues2 diapositives
unit 1.pptx par
unit 1.pptxunit 1.pptx
unit 1.pptxrrbornarecm
6 vues53 diapositives

Dernier(20)

Basic Design Flow for Field Programmable Gate Arrays par Usha Mehta
Basic Design Flow for Field Programmable Gate ArraysBasic Design Flow for Field Programmable Gate Arrays
Basic Design Flow for Field Programmable Gate Arrays
Usha Mehta24 vues
Integrating Sustainable Development Goals (SDGs) in School Education par SheetalTank1
Integrating Sustainable Development Goals (SDGs) in School EducationIntegrating Sustainable Development Goals (SDGs) in School Education
Integrating Sustainable Development Goals (SDGs) in School Education
SheetalTank120 vues
REPORT Data Science EXPERT LECTURE.doc par Parulkhatri11
REPORT Data Science EXPERT LECTURE.docREPORT Data Science EXPERT LECTURE.doc
REPORT Data Science EXPERT LECTURE.doc
Parulkhatri117 vues
2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf par Philipp Daum
2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf
2023-12 Emarei MRI Tool Set E2I0501ST (TQ).pdf
Philipp Daum6 vues
Different type of computer networks .pptx par nazmul1514788
Different  type of computer networks .pptxDifferent  type of computer networks .pptx
Different type of computer networks .pptx
nazmul151478820 vues
Building source code level profiler for C++.pdf par ssuser28de9e
Building source code level profiler for C++.pdfBuilding source code level profiler for C++.pdf
Building source code level profiler for C++.pdf
ssuser28de9e12 vues
Details of Acoustic Liner for selection of material par 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 vues
Trust Metric-Based Anomaly Detection via Deep Deterministic Policy Gradient R... par IJCNCJournal
Trust Metric-Based Anomaly Detection via Deep Deterministic Policy Gradient R...Trust Metric-Based Anomaly Detection via Deep Deterministic Policy Gradient R...
Trust Metric-Based Anomaly Detection via Deep Deterministic Policy Gradient R...
IJCNCJournal5 vues
Programmable Logic Devices : SPLD and CPLD par Usha Mehta
Programmable Logic Devices : SPLD and CPLDProgrammable Logic Devices : SPLD and CPLD
Programmable Logic Devices : SPLD and CPLD
Usha Mehta44 vues
GDSC Mikroskil Members Onboarding 2023.pdf par gdscmikroskil
GDSC Mikroskil Members Onboarding 2023.pdfGDSC Mikroskil Members Onboarding 2023.pdf
GDSC Mikroskil Members Onboarding 2023.pdf
gdscmikroskil75 vues
MongoDB.pdf par ArthyR3
MongoDB.pdfMongoDB.pdf
MongoDB.pdf
ArthyR353 vues
REACTJS.pdf par ArthyR3
REACTJS.pdfREACTJS.pdf
REACTJS.pdf
ArthyR339 vues

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

Notes de l'éditeur

  1. Laplace transform