際際滷

際際滷Share a Scribd company logo
Synchronize easily applications with akeneo/batch component
Magento Meetup 20.03.2019
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
WHAT IS AKENEO ?
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
WHAT IS A BATCH
 Treatment of the data in bulk
 Cancel issue with business code
 Performances
 Memory consumption
 Handle high volume of data
WHAT IS AKENEO/BATCH
 Component appeared in akeneo 1.6
 Inspired from Spring Batch
 At 鍖rst, integrated into AkeneoBatchBundle since 鍖rst
versions
 Now, completely bundle decoupled, totally autonomous
 Framework-agnostic
WHICH USE CASE ?
 Import / Export of data
 Mass Action
 Data cleanup
 Run internal command
 ...
HOW IT WORKS
Source: Gr辿gory Planchat - kiboko
HOW IT WORKS
Source: Spring Batch - https://docs.spring.io/spring-batch/trunk/reference/html/domain.html
HOW LOOKS LIKE A JOB
HOWTO START A JOB
PRINCIPLE
 Each job can be decomposed into "Step"
 2 steps family:
 Trigger
 Treatment
 Job has a JobParameter object
ITEMTRIGGER
 Run an unique action, quick (immediat) on an
external component of the batch
 No status (success / failure)
 Example: download a 鍖le, clear cache, send an
email, run a command, etc
A STEP TRIGGER: REINDEX MAGENTO
WHERE IS MY JOB ?
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)
ITEMTREATMENT
Source: Gr辿gory Planchat - kiboko
ITEM READER
Source: Gr辿gory Planchat - kiboko
ITEM WRITER
Source: Gr辿gory Planchat - kiboko
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
DRAWBACKS
 No conditional execution
 No native parallelization
IN ACTION !
THANKS / DANKE / MERCI
LINKS
 akeneo/batch component:
https://github.com/akeneo/batch
 Spring Batch:
https://docs.spring.io/spring-batch/trunk/reference/
html/domain.html

More Related Content

Akeneo batch Component