SlideShare uma empresa Scribd logo
1 de 35
Kliknij, aby edytować style wzorca tekstu
Kliknij, aby edytować style wzorca tekstu
Need for speed
Bartłomiej Rozkrut | Bartlomiej.Rozkrut@unity.pl
…jak sobie radzić z dużą ilością użytkowników i danych
www.unity.pl
Grupa Unity – wybrane realizacje
www.unity.pl
Typowy e-commerce
1. Katalog produktów
www.unity.pl
Typowy e-commerce
www.unity.pl
Typowy e-commerce
1. Katalog produktów
2. Wyszukiwarka
www.unity.pl
Typowy e-commerce
www.unity.pl
Typowy e-commerce
1. Katalog produktów
2. Wyszukiwarka
3. Karty produktowe
www.unity.pl
Typowy e-commerce
www.unity.pl
Typowy e-commerce
1. Katalog produktów
2. Wyszukiwarka
3. Karty produktowe
4. Koszyk
www.unity.pl
Typowy e-commerce
www.unity.pl
Typowy e-commerce
1. Katalog produktów
2. Wyszukiwarka
3. Karty produktowe
4. Koszyk
5. Kilka kroków zamówienia
www.unity.pl
Typowy e-commerce
www.unity.pl
Wydajność e-commerce
Nic skomplikowanego?
Niestety, ale…
www.unity.pl
Zaawansowany system e-commerce
Z czego się może się składać zaawansowany e-commerce?
1. Platforma B2C
• dla klientów detalicznych
2. Platforma B2B
• dla klientów hurtowych
3. Ścisła dwustronna integracja z systemem ERP
• obsługa zamówień w ERP
4. Integracje z dostawcami
• sprzedajemy z cudzych magazynów
5. Zarządzanie informacjami o produktach
• systemy klasy PIM
www.unity.pl
Zaawansowany system e-commerce
Jakie wyzwania przed nami stawia zaawansowany e-commerce?
1. Duża ilość produktów – np. 100+ tysięcy i klientów (100+ tys.)
• Problem z rozgrzaniem cache
2. Bardzo częste zmiany stanów magazynowych, dostępności towaru
• Firma prowadzi sprzedaż także poza e-commerce
• Wiele tysięcy zamówień dziennie w e-commerce
• Konieczność ciągłej regeneracji cache dla list oraz kart produktowych
3. Bardzo częste zmiany asortymentu – np. integracja z dostawcami elektroniki
• Konieczność ciągłej regeneracji cache dla list oraz kart produktowych
4. Każdy Klient może widzieć inne ceny!
• Cache per Klient ???
5. Bardzo duży, peakowy ruch
• Konieczność wykorzystania Reverse Proxy Cache
www.unity.pl
Wydajność aplikacji internetowych
Jak sobie radzić z takimi wyzwaniami?
Nie ma gotowych rozwiązań 
www.unity.pl
Wydajność aplikacji internetowych
Sprzęt jest bardzo ważny.
… ale nie rozwiąże naszych problemów.
www.unity.pl
Wydajność aplikacji internetowych
ARCHITEKTURA
Dołożenie sprzętu nic nie da jeśli
system nie jest na to przygotowany.
www.unity.pl
Wydajność aplikacji internetowych
Cache jest bardzo ważny.
… ale to nie wszystko.
Architektura
www.unity.pl
Wydajność aplikacji internetowych
Na początek architektura:
• separacja serwerów aplikacyjnych od bazodanowych
• separacja serwerów aplikacyjnych na:
• frontowe
• back office
www.unity.pl
Wydajność aplikacji internetowych
Wielopoziomowy cache:
• Wyniki zapytań do bazy danych / ORM cache
• Cache obiektów
• Cache modułów
• Full Page Cache
• Najlepiej w oparciu o serwer pamięci – np. memcached
• Problem z unikalną treścią dla użytkowników
• Problem z rozgrzewaniem cache
www.unity.pl
Wydajność aplikacji internetowych
Optymalizacja bazy danych:
• Na początek – dobra konfiguracja
• Zmaterializowane widoki
• Replikacja
• Dla niektórych zastosowań bazy NoSQL
• Plan zapytania przyjacielem programisty 
www.unity.pl
Wydajność aplikacji internetowych
Optymalizacja czasu wykonania kodu:
• Włączenie optymalizatorów – np. APC lub XCache dla PHP
• Rozsądne stosowanie ORMa
• Rozsądne używanie frameworka…
www.unity.pl
Wydajność aplikacji internetowych
Zastosowanie Reverse Proxy:
• np. Varnish lub nginx w trybie reverse proxy
• Nie dopuszczamy ruchu do naszych serwerów aplikacyjnych
• … albo dopuszczamy tylko częściowo i fragmentarycznie
• Potrafi bardzo znacząco pomóc przy peak’ach
• Cache z czasem życia 1 sekunda już daje efekty
Infrastruktura
www.unity.pl
Wydajność aplikacji internetowych
www.unity.pl
Infrastruktura fizyczna
www.unity.pl
Tylko chmura?
CHMURA
www.unity.pl
Rozwiązanie hybrydowe
www.unity.pl
Pytania?
www.unity.pl
Zapraszam na stoisko Grupy Unity
Tytuł prezentacji
Imię Nazwisko
Unity S.A.
ul.Przedmiejska 6-10,
54-201 Wrocław
www.unity.pl
Znajdź nas na FB:
www.unity.pl/facebook/
Zapraszamy do współpracy!

Mais conteúdo relacionado

Destaque

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 

Destaque (20)

Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 

#IT fest 2013 - Need for speed – jak sobie radzić z dużą ilością użytkowników i danych. Optymalizacja zaawansowanych aplikacji internetowych