~/talk

Using the Workflow component for e-commerce

Talkat phpDay 2019 · 2019-05-10..05-11· [php, microservices]
slides:none on file

Built an order API for the biggest Swiss retailer using the Symfony workflow component as a state machine with explicit state transitions (open confirmed assigned picked up delivered plus cancelled variants). Implementation ties guard and enter/leave events to event‑driven listeners which recalc prices, revoke notifications, queue push/SMS and handle refunds. Pickers typically claim orders within two minutes. Result is clearer error messages, machine‑readable workflow docs and a scalable queue that actually works for high notification volume.

AI-written summary · about

  1. 0:00Start
  2. 0:43This talk assumes little knowledge
  3. 1:48Michelle Sanver Colour and code addict
  4. 5:37Handling a large amount of SMS and Push notifications
  5. 9:55The Order State Machine
  6. 10:333. User sets delivery address on order
  7. 11:169. Card gets charged for order, picker gets paid
  8. 24:16Order API Challenges Solved
  9. 24:30Keeping orders/prices up to date
  10. 27:04Handling cancellation of an order
  11. 29:22Conclusion
  12. 29:42State machines make business logic explicit
  13. 30:00Writing Good Code
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.