Ce diaporama a bien été signalé.
Le téléchargement de votre SlideShare est en cours. ×

Akeneo batch Component

Chargement dans…3
×

Consultez-les par la suite

1 sur 24
1 sur 24

Akeneo batch Component

Télécharger pour lire hors ligne

Synchronize data between your applications thanks to the akeneo/batch component. A use case with Magento integration is introduced.

Synchronize data between your applications thanks to the akeneo/batch component. A use case with Magento integration is introduced.

Plus De Contenu Connexe

Akeneo batch Component

  1. 1. Synchronize easily applications with akeneo/batch component Magento Meetup 20.03.2019
  2. 2. ÜBER MICH • Gründer von Diglin GmbH • Magento, OroCommerce, OroCRM,Akeneo Entwickler & Funktional Spezialist • Organisator Meet Magento CH 2014/2015, verschiedene Hackathon FR/DACH • Fokus auf online shop, CRM und PIM Entwicklung • Circa 25 Referenzen in Magento, akeneo & OroXXX Projekte
  3. 3. WHAT IS AKENEO ?
  4. 4. THE PIM IS THE CRM OF THE PRODUCT E-COMMERCE MOBILE APPLICATION PRINT CATALOG POINTS OF SALE ERP MEDIA SERVER SUPPLIERS PURCHASING DPT MARKETING DPT CSV FTP XML XLS SUPPLIERS PORTAL CENTRALIZE & STANDARDIZE ENRICH RESEARCH TRANSLATE ORGANIZE COLLECT DATA FROM ANY SOURCE! SPREAD IT TO MULTIPLE CHANNELS1 ENRICH AND CONTROL THE Q UALITY OF YOUR PRODUCT INFORMATION 32
  5. 5. WHAT IS A BATCH • Treatment of the data in bulk • Cancel issue with business code • Performances • Memory consumption • Handle high volume of data
  6. 6. WHAT IS AKENEO/BATCH • Component appeared in akeneo 1.6 • Inspired from Spring Batch • At first, integrated into AkeneoBatchBundle since first versions • Now, completely bundle decoupled, totally autonomous • Framework-agnostic
  7. 7. WHICH USE CASE ? • Import / Export of data • Mass Action • Data cleanup • Run internal command • ...
  8. 8. HOW IT WORKS Source: Grégory Planchat - kiboko
  9. 9. HOW IT WORKS Source: Spring Batch - https://docs.spring.io/spring-batch/trunk/reference/html/domain.html
  10. 10. HOW LOOKS LIKE A JOB
  11. 11. HOWTO START A JOB
  12. 12. PRINCIPLE • Each job can be decomposed into "Step" • 2 steps family: • Trigger • Treatment • Job has a JobParameter object
  13. 13. ITEMTRIGGER • Run an unique action, quick (immediat) on an external component of the batch • No status (success / failure) • Example: download a file, clear cache, send an email, run a command, etc
  14. 14. A STEP TRIGGER: REINDEX MAGENTO
  15. 15. WHERE IS MY JOB ?
  16. 16. ITEMTREATMENT • Treat a source line by line • Data Input / Ouput can have different type of storage • Can accept or reject an item • Provide a status (success or failure)
  17. 17. ITEMTREATMENT Source: Grégory Planchat - kiboko
  18. 18. ITEM READER Source: Grégory Planchat - kiboko
  19. 19. ITEM WRITER Source: Grégory Planchat - kiboko
  20. 20. JOBREPOSITORY • Instanciate the objects JobExecution and StepExecution • Allow to store the current state of a step execution • Allow to retake execution where the error happens
  21. 21. DRAWBACKS • No conditional execution • No native parallelization
  22. 22. IN ACTION !
  23. 23. THANKS / DANKE / MERCI
  24. 24. LINKS • akeneo/batch component:
 https://github.com/akeneo/batch • Spring Batch:
 https://docs.spring.io/spring-batch/trunk/reference/ html/domain.html

×