Arquitetura de Aplicações para Dispositivos móveis Prof. Rogério Celestino

Conteúdo:

7. Mobile Applications – Padrões de Arquitetura back-end

7

Mobile Applications Padrões de arquitetura back-end

7. Padrões de arquitetura back-end •  Gerenciando sobrecarga.

•  Escalabilidade Vertical vs Escalabilidade Horizontal

•  Trade-offs de Escalabilidade – Performance vs Escalabilidade – Latência vs Throughput – Disponibilidade vs Consistência

7. Padrões de arquitetura back-end •  Como você sabe se tem um problema de performance? Se seu sistema é lento para apenas um usuário.

7. Padrões de arquitetura back-end •  Como você sabe se tem um problema de escalabilidade? Se seu sistema é rápido para apenas um usuário mas lento para vários usuários.

7. Padrões de arquitetura back-end

Você deve se esforçar para ter o mínimo de throughput com uma latência aceitável.

7. Padrões de arquitetura back-end •  Disponibilidade vs Consistência –  Teorema CAP •  Consistency, Availability, Partition

–  Teorema ACID •  Atomicity, Consistency, Isolation, Durability

–  Teorema BASE •  Basically Available Soft state Enventual consistency

Propriedade CAP •  Consistency - Consistência –  Significa se um sistema esta consistente, após a execução de uma operação. Por exemplo um sistema é considerado consistente se depois da atualização de um dado, todos os usuários que tem acesso a esse dado, possam acessá-lo em tempo real.

Propriedade CAP •  Availability -Disponibilidade –  Refere-se á concepção e implementação deum sistema de modo que seja assegurado que esse permanece ativo durante um determinado período de tempo.

Propriedade CAP •  Partition tolerance – Tolerância ao particionamento –  Refere-se a capacidade de um sistema continuar operando mesmo depois uma falha na rede.

Propriedades ACID: •  Atomicidade: A transação será executada totalmente ou não será executada. •  Consistência: Garante que o banco de dados passará de uma forma consistente para outra forma consistente. •  Isolamento: Garante que a transação não será interferida por nenhuma outra transação concorrente. •  Durabilidade: Garante que o que foi salvo, não será mais perdido.

Propriedades BASE •  Basically Available – Basicamente Disponível. •  Soft-State – Estado Leve •  Eventually Consistent – Eventualmente Consistente •  Uma aplicação funciona basicamente todo o tempo (Basicamente Disponível), não tem de ser consistente todo o tempo (Estado Leve) e o sistema torna-se consistente no momento devido (Eventualmente Consistente).

7. Padrões de arquitetura back-end •  Pense sobre seus dados –  Quando você precisa de ACID? –  Quando Enventualmente Consistente (BASE) é a melhor escolha?

7. Padrões de arquitetura back-end

Tipos diferentes de dados possuem necessidade diferentes O que deve te guiar na decisão é como seus dados são acessados

7. Padrões de arquitetura back-end •  Padrões de Escalabilidade –  Particionamento –  HTTP caching –  RDBMS sharding –  NoSql –  Data Grids –  Concorrência

7. Padrões de arquitetura back-end Quando  se  trata  de  execução  de  aplica8vos,  as   organizações  enfrentam  hoje  uma  tensão  entre   controle  e  economia  de  escala  

Alto   Baixo  

Controle   Economia  de  escala  

Baixo   Alto  

7. Padrões de arquitetura back-end Aplicação  rodando     on-­‐premises       Compre  seu  próprio   hardware  e  gerencie   seu  próprio  data   center  

Alto   Baixo  

Aplicação  rodando   em  um  hoster    

  Pague  para  algum   provedor  de  hospe-­‐   dagem  para  hopedar   minha  aplicação  usando   o  hardware  que  eu   especifico  

Controle   Economia  de  escala  

Aplicação  rodando   usando  a  plataforma   cloud     Pague  para  algum   provedor  hospedar   minha  aplicação  sem   especificar  o  hardware   (a  promessa  é  de  ser   “infinito”,  escalável)  

Baixo   Alto  

7. Padrões de arquitetura back-end

Mobile Client

Mobile

Native

Hybrid

Web

Application Services Static Content Video

Images

RESTful Services

Streaming

Data Store

Messaging

Push Notifications

Social

Analytics

Location

User Manager

Infrastructure Services Storage NoSql

Relational

Identity & Access Unstructured

Infrastructure

Authentication

Authorization

Scalability Replication

Elastic

Compute Physical, Dedicated

On Premises

Physical, Shared

Hoster

Virtual, Single

Virtual, Fabric

Cloud

Resumo e Conclusões da Aula •  Nesta aula fizemos uma visão geral sobre gerenciamento de carga em uma a arquitetura back-end mobile. •  Apresentamos estratégias diferentes de escalabilidade. •  Discutimos sobre controle vs economia de escala. •  Finalizamos com a demonstração das camadas de um back-end mobile.

09- BackEnd patterns.pdf

There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. 09- BackEnd ...

2MB Sizes 0 Downloads 177 Views

Recommend Documents

Compilers: Backend to Frontend - GitHub
Sep 17, 2006 - Line 3 says that the label scheme_entry should be considered a ...... Figure 1.10: One way of implementing proper tail calls is by collapsing.

Udacity & AT&T Backend Nano Degree Collaboration.pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. MakerSquare ...

201504 – NousGuide – Backend Developer.pdf
[email protected]. www.nousguide.com. Page 1 of 1. 201504 – NousGuide – Backend Developer.pdf. 201504 – NousGuide – Backend Developer.pdf.

Compiling Links Effect Handlers to the OCaml Backend
The University of Edinburgh .... of intermediate representations (IRs), where the top representation is known as Lambda. .... Methods in Computer Science, 2013.

Finnigan and Tanaka 09 09
Page 1 ... how your action makes sense; you did a certain thing (parry upwards) so that .... You have to find out in your own way based on your body structure,.

2016-09-09-Board Minutes.pdf
... Meeting adjourned at 4:05PM. Next board meeting: December 12th @ 1:00PM. Page 3 of 15. 2016-09-09-Board Minutes.pdf. 2016-09-09-Board Minutes.pdf.

AV.09-09-2016 SATIVASUR.pdf
Sign in. Page. 1. /. 4. Loading… Page 1 of 4. Page 1 of 4. Page 2 of 4. Page 2 of 4. Page 3 of 4. Page 3 of 4. AV.09-09-2016 SATIVASUR.pdf. AV.09-09-2016 SATIVASUR.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying AV.09-09-2016 SATIVASU

09-09-16.pdf
approved a new mea- sure that will ban 19. ingredients in soaps. The ban will go into. effect in one year. All. of the banned sub- stances had been pro- moted as ...

zm-2015-09-09.pdf
Page 1 of 72. 5. zasedání ZM Rychvald. MATERIÁLY URENÉ PRO ZASEDÁNÍ ZASTUPITELSTVA M STA RYCHVALD DNE 09. 09. 2015. 1/72. Obsah. Obsah .

09. Jurus_ampuh_membangun_Firewall_dengan_Mikrotik.pdf ...
20+ years in IT & Communication Industries. • Designed and implemented a wide array of networks all of the world. • Introduced to the MikroTik product line in 2008. • Areas of Focus: • Wireless services integration. • ISP Solutions. • Cer

1120-09
May 8, 2017 - the appropriate vender. (2) Service award credit shall be given for the same periods of employment in state government as are recognized by ...

Chapter 09
In the late 1700s and early 1800s, he kept notes about his travels .... In 1762, he quit the company. In 1670, the Hudson's Bay Company held trading rights and.

1120-09
May 8, 2017 - 1120-09-.03. Employee Service Awards. 1120-09-.01 TENNESSEE EMPLOYEES' CHARITABLE CAMPAIGN. The Tennessee Employees.

29490-09 29915-09 -J04843.pdf
Dec 9, 2010 - -J04843 3 of 3. Page 3 of 3. 29490-09 29915-09 -J04843.pdf. 29490-09 29915-09 -J04843.pdf. Open. Extract. Open with. Sign In. Main menu.

MGH FireCloud Workshop Slides 09-09-16.pdf
The Data Model. ○ Method Configuration basics. ○ Basics of Tasks, Workflows, and WDL. ○ Open and Controlled Access TCGA Data. We hope you will be ...

09-09-2012- Previous Year Paper) - TheTubeGURU.pdf ...
Page 1 of 60. IBPS RRBS OFFICE ASSISTANT CWE EXAM,. 09-09-2012- PREVIOUS YEAR PAPER. GENERAL AWARENESS. 1. Which of the following is the Currency of Bahrain ? (1) Peso. (2) Dinar. (3) Riyal. (4) Baht. (5) Kwacha. Solution:2. 2. Which of the following

Cerruti y Binstock - Familias latinoamericanas. 24-09-09 - Cepal
Sep 24, 2009 - sorprendente que la fecundidad adolescente no haya descendido en forma significativa (Rodríguez y Hopenhayn, 2007), lo que ... reconocimiento social por parte del entorno y que constituya el único proyecto de vida (López,. 2006; Zamber

Primera EMS 09 09 2017.pdf
Oaxaca, México (AP). Un poderoso terremoto de mag- nitud 8,1 en escala de Richter golpeó la costa sur de este. país. Derribó cientos de edificios y la cifra de ...

2016-09-20_jugement_TC_Marseille_Sisvel_c_Wiko.pdf
Royalty House. 32 Sackville Street Mayfair. Londres. WIS3EA. ROY AUME-UNI. (Maîtres Sabine AGE et Amandine METIER, VERON &. Associés, Avocats au ...

09. Leda.pdf
[email protected] ... emerging generation of intel- lectuals with different voices .... Leda.pdf. 09. Leda.pdf. Open. Extract. Open with. Sign In. Main menu.

09-Police.pdf
Intelligence, Bomb Squad, S.W.A.T., Hostage Negotiations, Forensic Science. Laboratory, Information Systems and the Evidence Unit. 88. Whoops! There was a ...

09.pdf
Comparison of Accounting and Finance Graduates to Business. Administration ... system can be the most important aspect of career management (Olson 1994).

1200-03-09
Apr 5, 2017 - of construction. Sources identified in paragraph 1200-03-09-.01(4) shall make ..... under section 2(a) and (b) of the Energy Supply and Environmental ... (III) Use of an alternative fuel by reason of an order or rule under section.

1660-02-09
Apr 13, 2017 - (e) Any person who fails to comply with the directive to transverse the test course shall be subject to prosecution under T.C.A. § 69-9-301 et ...