SlideShare une entreprise Scribd logo
1  sur  17
Télécharger pour lire hors ligne
 
 
Lesson Keynote 
Distributed Systems in Data Engineering 
By: Oluwasegun Matthew | oadetimehin@terragonltd.com 
 
Summary 
1. Introduction to Distributed Systems 
a. The concept of server-client architecture 
b. Channel for Communication 
c. Impact on Data Engineering at Scale 
2. From Localhost to Production - things to watchout for... 
3. Industry based Technologies/Tools in View 
a. Messaging kits - RabbitMQ & Kafka 
b. In Memory Data Caching - Redis & Aerospike 
c. Data in Stream Tools - AWS Kinesis 
d. Monitoring and Log Watch - CloudWatch 
4. Summary - in class 
5. Questions 
Class Activity:​ ​Form 4 groups, choose from any of the messaging and in-memory data caching 
tool, use this to ​create a resilient distributed system​ to fix the following problems:  
- Crashing nature of e-Portal portal 
- Exam records processing 
Let’s Dive In... 
1 
 
 
1. Introduction to Distributed Systems 
According to Wikipedia through Google,  
 
A distributed system in its most simplest definition is a group of computers working together as to                                 
appear as a single computer to the end-user. These machines have a shared state, operate                             
concurrently and can fail independently without affecting the whole system’s uptime. 
This is in line with ever-growing technological expansion of the world, distributed systems are                           
becoming more and more widespread. Take a look at the increasing number of available                           
computer technologies/innovation around, this is sporadically increasing, and this result in                     
intense computational requirement. 
Yeah, Moore’s law proposed more computing power by fitting more transistors (which                       
approximately doubles every two years) into a simple chip using cost-efficient approach - cool,                           
but over the past 5 years, there has been little deviation from this - ability to scale horizontally                                   
and not just vertically alone. 
 
 
 
 
 
 
2 
 
 
The Concept of Server-Client Architecture 
Client-server architecture(client/server) is a network architecture in which each computer or                     
process on the network is either a client or a server.  
Just the way it is in a general world, activities is usually based on server/client relationship and                                 
this isn’t different in technology too e.g Cashier/Customer, Bus Conductor/Passengers etc. 
Another type of network architecture is known as a peer-to-peer architecture because each node                           
has equivalent responsibilities -​ but this isn’t what we are discussing today 
 
 
 
 
 
The approach of breaking breaking larger application into chunks over a server-client 
architecture can be explained with ​Microservices. ​Consider the cases below: 
 
 
3 
 
 
Case 1 - Monolith: ​At the core of the application is the business logic, which is implemented by                                   
modules that define services, domain objects, and events. Surrounding the core are adapters that                           
interface with the external world. Examples of adapters include database access components,                       
messaging components that produce and consume messages, and web components that either                       
expose API or implement a UI - this results in ​Monolithic Hell 
 
 
4 
 
 
Case 2 - Microservices:​ Here we are tackling complexity, A service typically implements a set of 
distinct features or functionality, such as order management, customer management etc. Each 
microservice is a mini-application that has its own hexagonal architecture consisting of business 
logic along with various adapters. Some microservices world expose an API that’s consumed by 
other microservies or by the application’s client. Other microservices might implement a web UI. 
At runtime, each instance is often a cloud VM or a Docker container. 
 
 
5 
 
 
 
 
 
 
Quiz ​Give…  
● Examples of a client/server relationship in real world 
● Methods of binding two systems that you know 
● Two architectures in which softwares are designed 
● Major issue with Monolithic design 
 
 
 
 
 
 
 
 
 
 
6 
 
 
Channel for Communication 
When we have a decentralized system, it’s important for us to make these systems communicate                             
with one-another. The client/server architecture emphasis a producer/consumer computing                 
architecture where the server acts as the producer and the client as a consumer. The model of                                 
communication can either be ​synchronous​ or ​asynchronous​. Each of this further broken into: 
- API Mode 
- Buffer Mode 
 
API Mode: is a synchronous (or instant feedback) mode of communication. It usually used for                             
one-to-one type of communication through protocols like http, https, smtp, smpp etc. 
 
Buffer Mode: is an asynchronous mode of communication, where feedback isn’t needed                       
immediately. It works for both one-to-one and broadcast communication. In this mode of                         
communication, a queuing/messaging/buffering system is placed in between these two systems                     
to manage flow of information. Here the following queuing algorithm is emphasized: 
- FIFO (First In First Out) 
- LIFO (Last In First Out) 
- SJF (Shortest Job First) 
- Round Robin 
 
Impact on Data Engineering at Scale 
Again, bringing the concept of distributed system into data Engineering...Hey, what’s data                       
engineering? 
Data engineering is the act of building and managing information or “big data” infrastructure.                           
Data engineers create architecture that helps analyze and process data in the way it’s needed by                               
an organization, from data processing to creating a pipeline of data into lake and warehouse for                               
business value creation. 
The following are some of the positive impacts of distributed system in data engineering: 
- Creating resilient data architecture 
- Easily managed systems 
7 
 
 
- Security and control 
- Reduced failure point 
- Fault detection with ease 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8 
 
 
 
 
 
 
 
 
 
Quiz ​Mention...  
● 2 Queue algorithms you are familiar with 
● Web Technologies that runs on HTTP protocol 
 
 
 
 
 
 
 
 
9 
 
 
2. From Localhost to Production - things to watchout for.. 
When systems are built on development environment, a lot isn’t considered, this may be due to 
experience, right information or un-envisaged circumstances. This implies that a perfect system 
cannot be built at development stage until it’s tested in real-life scenario. 
Sometimes, system overkill design might be a major flaw of the development phase, but the 
production will really tell or not. 
List of things to watch out: 
- Unexpected spike in platform/technology usage - system overload 
- Performance as a result of consistent platform usage 
- Security of interconnected systems 
- Extensibility of features 
- Easy of deployment 
 
 
 
 
 
 
 
 
 
 
 
 
 
10 
 
 
Enough of theoretical exposition, Let’s go practical… 
 
3. Industry based Technologies/Tools in View 
Here we shall talk about the different tools used in the industry to manage distributed system 
Messaging Kits ​- e.g. RabbitMQ or Kafka 
 
RabbitMQ is the most widely deployed open source message broker - ​https://www.rabbitmq.com/ 
Tutorial Guide (in PHP) - https://www.rabbitmq.com/tutorials/tutorial-three-php.html 
 
 
11 
 
 
 
 
12 
 
 
 
 
 
 
 
13 
 
 
In Memory Data Caching ​- e.g. Redis or Aerospike 
 
 
Redis is an open source in-memory data structure store used as a databse, cache and message                               
broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range                             
queries, bitmaps, hyperlogs etc.. - ​https://redis.io/ 
 
Documentation found here for PHP: https://github.com/amphp/redis 
14 
 
 
 
Data in Steam Tools ​- AWS Kinesis 
 
AWS Kinesis makes it easy to collect, process and analyze real-time streaming data so you can                               
get timely insights and react quickly to new information; owned by Amazon  
- https://aws.amazon.com/kinesis/ 
 
 
 
15 
 
 
Monitoring and Logs Watch​ - CloudWatch 
` 
AWS Cloudwatch is a monitoring and management service built for developers, system                       
operators, site reliability engineers (SRE), and IT managers https://aws.amazon.com/cloudwatch/ 
 
 
 
 
 
 
 
 
 
 
 
 
Assessment 
See class activity on the first page... 
 
 
 
 
16 
 
 
 
 
 
 
Questions and Mentorship 
For further questions, collaboration or mentorship, reach out: 
Email: oadetimehin@terragonltd.com  
Mobile: 07060514642 
 
 
17 

Contenu connexe

Tendances

An AI-Powered Chatbot to Simplify Apache Spark Performance Management
An AI-Powered Chatbot to Simplify Apache Spark Performance ManagementAn AI-Powered Chatbot to Simplify Apache Spark Performance Management
An AI-Powered Chatbot to Simplify Apache Spark Performance Management
Databricks
 
Authentication: Cookies vs JWTs and why you’re doing it wrong
Authentication: Cookies vs JWTs and why you’re doing it wrongAuthentication: Cookies vs JWTs and why you’re doing it wrong
Authentication: Cookies vs JWTs and why you’re doing it wrong
Derek Perkins
 
Etude comparative Open source ESB
Etude comparative Open source ESBEtude comparative Open source ESB
Etude comparative Open source ESB
Abdelsalam Safi
 

Tendances (20)

Reactive programming
Reactive programmingReactive programming
Reactive programming
 
An AI-Powered Chatbot to Simplify Apache Spark Performance Management
An AI-Powered Chatbot to Simplify Apache Spark Performance ManagementAn AI-Powered Chatbot to Simplify Apache Spark Performance Management
An AI-Powered Chatbot to Simplify Apache Spark Performance Management
 
Authentication: Cookies vs JWTs and why you’re doing it wrong
Authentication: Cookies vs JWTs and why you’re doing it wrongAuthentication: Cookies vs JWTs and why you’re doing it wrong
Authentication: Cookies vs JWTs and why you’re doing it wrong
 
Introduction to Spring WebFlux #jsug #sf_a1
Introduction to Spring WebFlux #jsug #sf_a1Introduction to Spring WebFlux #jsug #sf_a1
Introduction to Spring WebFlux #jsug #sf_a1
 
REST and Microservices
REST and MicroservicesREST and Microservices
REST and Microservices
 
Servlet
Servlet Servlet
Servlet
 
Microservices with Kafka Ecosystem
Microservices with Kafka EcosystemMicroservices with Kafka Ecosystem
Microservices with Kafka Ecosystem
 
Cheat Sheet
Cheat SheetCheat Sheet
Cheat Sheet
 
Writing and testing high frequency trading engines in java
Writing and testing high frequency trading engines in javaWriting and testing high frequency trading engines in java
Writing and testing high frequency trading engines in java
 
Jenkins without Install
Jenkins without InstallJenkins without Install
Jenkins without Install
 
Android Interview Questions And Answers | Android Tutorial | Android Online T...
Android Interview Questions And Answers | Android Tutorial | Android Online T...Android Interview Questions And Answers | Android Tutorial | Android Online T...
Android Interview Questions And Answers | Android Tutorial | Android Online T...
 
Next.js vs React | what to choose for frontend development_
Next.js vs React | what to choose for frontend development_Next.js vs React | what to choose for frontend development_
Next.js vs React | what to choose for frontend development_
 
Introduction to Data Stream Processing
Introduction to Data Stream ProcessingIntroduction to Data Stream Processing
Introduction to Data Stream Processing
 
Running Spring Boot Applications as GraalVM Native Images
Running Spring Boot Applications as GraalVM Native ImagesRunning Spring Boot Applications as GraalVM Native Images
Running Spring Boot Applications as GraalVM Native Images
 
Convolutional Neural Networks and Natural Language Processing
Convolutional Neural Networks and Natural Language ProcessingConvolutional Neural Networks and Natural Language Processing
Convolutional Neural Networks and Natural Language Processing
 
How to build a dApp in StarkNet
How to build a dApp in StarkNetHow to build a dApp in StarkNet
How to build a dApp in StarkNet
 
Journey of saga pattern in microservice architecture
Journey of saga pattern in microservice architectureJourney of saga pattern in microservice architecture
Journey of saga pattern in microservice architecture
 
Etude comparative Open source ESB
Etude comparative Open source ESBEtude comparative Open source ESB
Etude comparative Open source ESB
 
Jsf presentation
Jsf presentationJsf presentation
Jsf presentation
 
OSA Con 2022 - Arrow in Flight_ New Developments in Data Connectivity - David...
OSA Con 2022 - Arrow in Flight_ New Developments in Data Connectivity - David...OSA Con 2022 - Arrow in Flight_ New Developments in Data Connectivity - David...
OSA Con 2022 - Arrow in Flight_ New Developments in Data Connectivity - David...
 

Similaire à Distributed Systems in Data Engineering

NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 LinkedinNMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
Javier Guillermo, MBA, MSc, PMP
 
A New Way Of Distributed Or Cloud Computing
A New Way Of Distributed Or Cloud ComputingA New Way Of Distributed Or Cloud Computing
A New Way Of Distributed Or Cloud Computing
Ashley Lovato
 
Solving big data challenges for enterprise application
Solving big data challenges for enterprise applicationSolving big data challenges for enterprise application
Solving big data challenges for enterprise application
Trieu Dao Minh
 
Architectural Design Report G4
Architectural Design Report G4Architectural Design Report G4
Architectural Design Report G4
Prizzl
 
Distributed Computing Report
Distributed Computing ReportDistributed Computing Report
Distributed Computing Report
IIT Kharagpur
 

Similaire à Distributed Systems in Data Engineering (20)

CC LECTURE NOTES (1).pdf
CC LECTURE NOTES (1).pdfCC LECTURE NOTES (1).pdf
CC LECTURE NOTES (1).pdf
 
Microservices architecture
Microservices architectureMicroservices architecture
Microservices architecture
 
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 LinkedinNMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
NMS Projects and POCs completed and ongoing for OSS NAM v 1.5 Linkedin
 
Introduction Of Cloud Computing
Introduction Of Cloud ComputingIntroduction Of Cloud Computing
Introduction Of Cloud Computing
 
HOW-CLOUD-IMPLEMENTATION-CAN-ENSURE-MAXIMUM-ROI.pdf
HOW-CLOUD-IMPLEMENTATION-CAN-ENSURE-MAXIMUM-ROI.pdfHOW-CLOUD-IMPLEMENTATION-CAN-ENSURE-MAXIMUM-ROI.pdf
HOW-CLOUD-IMPLEMENTATION-CAN-ENSURE-MAXIMUM-ROI.pdf
 
Distributed system
Distributed systemDistributed system
Distributed system
 
publishable paper
publishable paperpublishable paper
publishable paper
 
paradigms cloud.pptx
paradigms cloud.pptxparadigms cloud.pptx
paradigms cloud.pptx
 
A New Way Of Distributed Or Cloud Computing
A New Way Of Distributed Or Cloud ComputingA New Way Of Distributed Or Cloud Computing
A New Way Of Distributed Or Cloud Computing
 
Cloud computing Review over various scheduling algorithms
Cloud computing Review over various scheduling algorithmsCloud computing Review over various scheduling algorithms
Cloud computing Review over various scheduling algorithms
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
E-Business And Technology Essay
E-Business And Technology EssayE-Business And Technology Essay
E-Business And Technology Essay
 
Solving big data challenges for enterprise application
Solving big data challenges for enterprise applicationSolving big data challenges for enterprise application
Solving big data challenges for enterprise application
 
Client Server Model and Distributed Computing
Client Server Model and Distributed ComputingClient Server Model and Distributed Computing
Client Server Model and Distributed Computing
 
OOP - Basing Software Development on Reusable
OOP - Basing Software Development on Reusable OOP - Basing Software Development on Reusable
OOP - Basing Software Development on Reusable
 
1.intro. to distributed system
1.intro. to distributed system1.intro. to distributed system
1.intro. to distributed system
 
Architectural Design Report G4
Architectural Design Report G4Architectural Design Report G4
Architectural Design Report G4
 
Distributed Computing Report
Distributed Computing ReportDistributed Computing Report
Distributed Computing Report
 
Report_Internships
Report_InternshipsReport_Internships
Report_Internships
 
Over view of software artitecture
Over view of software artitectureOver view of software artitecture
Over view of software artitecture
 

Plus de Adetimehin Oluwasegun Matthew

Plus de Adetimehin Oluwasegun Matthew (7)

Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
Machine Learning - Deep Learning
Machine Learning - Deep LearningMachine Learning - Deep Learning
Machine Learning - Deep Learning
 
Personal Branding - Necessity for DevOps Engineers
Personal Branding - Necessity for DevOps EngineersPersonal Branding - Necessity for DevOps Engineers
Personal Branding - Necessity for DevOps Engineers
 
Relevance of academics to Industry
Relevance of academics to IndustryRelevance of academics to Industry
Relevance of academics to Industry
 
Choosing a Careeer in Information Technology
Choosing a Careeer in Information TechnologyChoosing a Careeer in Information Technology
Choosing a Careeer in Information Technology
 
Engineering Data Pipeline for Data-Driven Analytics
Engineering Data Pipeline for Data-Driven AnalyticsEngineering Data Pipeline for Data-Driven Analytics
Engineering Data Pipeline for Data-Driven Analytics
 
Becoming a world class engineer
Becoming a world class engineerBecoming a world class engineer
Becoming a world class engineer
 

Dernier

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Dernier (20)

HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 

Distributed Systems in Data Engineering

  • 1.     Lesson Keynote  Distributed Systems in Data Engineering  By: Oluwasegun Matthew | oadetimehin@terragonltd.com    Summary  1. Introduction to Distributed Systems  a. The concept of server-client architecture  b. Channel for Communication  c. Impact on Data Engineering at Scale  2. From Localhost to Production - things to watchout for...  3. Industry based Technologies/Tools in View  a. Messaging kits - RabbitMQ & Kafka  b. In Memory Data Caching - Redis & Aerospike  c. Data in Stream Tools - AWS Kinesis  d. Monitoring and Log Watch - CloudWatch  4. Summary - in class  5. Questions  Class Activity:​ ​Form 4 groups, choose from any of the messaging and in-memory data caching  tool, use this to ​create a resilient distributed system​ to fix the following problems:   - Crashing nature of e-Portal portal  - Exam records processing  Let’s Dive In...  1 
  • 2.     1. Introduction to Distributed Systems  According to Wikipedia through Google,     A distributed system in its most simplest definition is a group of computers working together as to                                  appear as a single computer to the end-user. These machines have a shared state, operate                              concurrently and can fail independently without affecting the whole system’s uptime.  This is in line with ever-growing technological expansion of the world, distributed systems are                            becoming more and more widespread. Take a look at the increasing number of available                            computer technologies/innovation around, this is sporadically increasing, and this result in                      intense computational requirement.  Yeah, Moore’s law proposed more computing power by fitting more transistors (which                        approximately doubles every two years) into a simple chip using cost-efficient approach - cool,                            but over the past 5 years, there has been little deviation from this - ability to scale horizontally                                    and not just vertically alone.              2 
  • 3.     The Concept of Server-Client Architecture  Client-server architecture(client/server) is a network architecture in which each computer or                      process on the network is either a client or a server.   Just the way it is in a general world, activities is usually based on server/client relationship and                                  this isn’t different in technology too e.g Cashier/Customer, Bus Conductor/Passengers etc.  Another type of network architecture is known as a peer-to-peer architecture because each node                            has equivalent responsibilities -​ but this isn’t what we are discussing today            The approach of breaking breaking larger application into chunks over a server-client  architecture can be explained with ​Microservices. ​Consider the cases below:      3 
  • 4.     Case 1 - Monolith: ​At the core of the application is the business logic, which is implemented by                                    modules that define services, domain objects, and events. Surrounding the core are adapters that                            interface with the external world. Examples of adapters include database access components,                        messaging components that produce and consume messages, and web components that either                        expose API or implement a UI - this results in ​Monolithic Hell      4 
  • 5.     Case 2 - Microservices:​ Here we are tackling complexity, A service typically implements a set of  distinct features or functionality, such as order management, customer management etc. Each  microservice is a mini-application that has its own hexagonal architecture consisting of business  logic along with various adapters. Some microservices world expose an API that’s consumed by  other microservies or by the application’s client. Other microservices might implement a web UI.  At runtime, each instance is often a cloud VM or a Docker container.      5 
  • 6.             Quiz ​Give…   ● Examples of a client/server relationship in real world  ● Methods of binding two systems that you know  ● Two architectures in which softwares are designed  ● Major issue with Monolithic design                      6 
  • 7.     Channel for Communication  When we have a decentralized system, it’s important for us to make these systems communicate                              with one-another. The client/server architecture emphasis a producer/consumer computing                  architecture where the server acts as the producer and the client as a consumer. The model of                                  communication can either be ​synchronous​ or ​asynchronous​. Each of this further broken into:  - API Mode  - Buffer Mode    API Mode: is a synchronous (or instant feedback) mode of communication. It usually used for                              one-to-one type of communication through protocols like http, https, smtp, smpp etc.    Buffer Mode: is an asynchronous mode of communication, where feedback isn’t needed                        immediately. It works for both one-to-one and broadcast communication. In this mode of                          communication, a queuing/messaging/buffering system is placed in between these two systems                      to manage flow of information. Here the following queuing algorithm is emphasized:  - FIFO (First In First Out)  - LIFO (Last In First Out)  - SJF (Shortest Job First)  - Round Robin    Impact on Data Engineering at Scale  Again, bringing the concept of distributed system into data Engineering...Hey, what’s data                        engineering?  Data engineering is the act of building and managing information or “big data” infrastructure.                            Data engineers create architecture that helps analyze and process data in the way it’s needed by                                an organization, from data processing to creating a pipeline of data into lake and warehouse for                                business value creation.  The following are some of the positive impacts of distributed system in data engineering:  - Creating resilient data architecture  - Easily managed systems  7 
  • 8.     - Security and control  - Reduced failure point  - Fault detection with ease                                              8 
  • 9.                   Quiz ​Mention...   ● 2 Queue algorithms you are familiar with  ● Web Technologies that runs on HTTP protocol                  9 
  • 10.     2. From Localhost to Production - things to watchout for..  When systems are built on development environment, a lot isn’t considered, this may be due to  experience, right information or un-envisaged circumstances. This implies that a perfect system  cannot be built at development stage until it’s tested in real-life scenario.  Sometimes, system overkill design might be a major flaw of the development phase, but the  production will really tell or not.  List of things to watch out:  - Unexpected spike in platform/technology usage - system overload  - Performance as a result of consistent platform usage  - Security of interconnected systems  - Extensibility of features  - Easy of deployment                            10 
  • 11.     Enough of theoretical exposition, Let’s go practical…    3. Industry based Technologies/Tools in View  Here we shall talk about the different tools used in the industry to manage distributed system  Messaging Kits ​- e.g. RabbitMQ or Kafka    RabbitMQ is the most widely deployed open source message broker - ​https://www.rabbitmq.com/  Tutorial Guide (in PHP) - https://www.rabbitmq.com/tutorials/tutorial-three-php.html      11 
  • 14.     In Memory Data Caching ​- e.g. Redis or Aerospike      Redis is an open source in-memory data structure store used as a databse, cache and message                                broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range                              queries, bitmaps, hyperlogs etc.. - ​https://redis.io/    Documentation found here for PHP: https://github.com/amphp/redis  14 
  • 15.       Data in Steam Tools ​- AWS Kinesis    AWS Kinesis makes it easy to collect, process and analyze real-time streaming data so you can                                get timely insights and react quickly to new information; owned by Amazon   - https://aws.amazon.com/kinesis/        15 
  • 16.     Monitoring and Logs Watch​ - CloudWatch  `  AWS Cloudwatch is a monitoring and management service built for developers, system                        operators, site reliability engineers (SRE), and IT managers https://aws.amazon.com/cloudwatch/                          Assessment  See class activity on the first page...          16 
  • 17.             Questions and Mentorship  For further questions, collaboration or mentorship, reach out:  Email: oadetimehin@terragonltd.com   Mobile: 07060514642      17