Slide 1

Slide 1 text

Five Years of Beta Jeremy Mikola @jmikola

Slide 2

Slide 2 text

A little about myself

Slide 3

Slide 3 text

Some time ago, I talked about this…

Slide 4

Slide 4 text

tl;dr

Slide 5

Slide 5 text

This is a story about Doctrine MongoDB ODM

Slide 6

Slide 6 text

From the other side

Slide 7

Slide 7 text

● Object Relational Mapper (ORM) ● Database Abstraction Layer (DBAL) ● Object Document Mappers (ODMs) ○ MongoDB ○ PHPCR ○ CouchDB ○ OrientDB ● MongoDB Abstraction Layer ● Common ○ Annotations ○ Collections ○ Lexer ● Cache ● Migrations ● Framework integrations ○ Symfony bridge and bundles ○ Zend Framework modules What (and who) is Doctrine?

Slide 8

Slide 8 text

What is MongoDB? ● Open-source document database ○ Replication and sharding ○ Web scale™ ● Cloud services ○ Monitoring and backup ○ Operations management ○ Database as a Service (DBaaS) ● Integrations ○ Hadoop ○ Spark ○ BI Connector (SQL) ● Drivers ○ PHP, HHVM, and many other languages

Slide 9

Slide 9 text

Let’s go back in time…

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Who was using Symfony back then?

Slide 12

Slide 12 text

OpenSky faced an architectural challenge ● Encountered difficulty scaling Magento ○ Multi-tenant deployment with hundreds of stores ● Realized the need for a bespoke application ○ Move Magento behind a service layer during transition ○ Slowly migrate away from its EAV database model ● Considered the very latest technologies ○ PHP 5.3 ○ Lithium ○ Symfony 2 ○ Zend Framework 2 ○ MongoDB

Slide 13

Slide 13 text

Symfony Live Paris 2011

Slide 14

Slide 14 text

Symfony Live Paris 2011

Slide 15

Slide 15 text

Long before Composer

Slide 16

Slide 16 text

install_vendors.sh

Slide 17

Slide 17 text

update_vendors.sh

Slide 18

Slide 18 text

Active Record

Slide 19

Slide 19 text

Data Mapper

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

These guys had an idea

Slide 22

Slide 22 text

Why don’t we create an ODM for MongoDB? ● Port essential ORM functionality ○ Class metadata ○ Unit of work ○ Lifecycle events ○ Persistence ○ Repositories ● Limit the feature scope ○ Database abstraction layer ○ Sharding support ○ Migrations ○ Caching

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

2010 – 2011

Slide 25

Slide 25 text

2012 – 2014

Slide 26

Slide 26 text

2015 – present

Slide 27

Slide 27 text

Why did this take five years?

Slide 28

Slide 28 text

Keeping up with the flow

Slide 29

Slide 29 text

● Maintaining compatibility ○ MongoDB server ○ Doctrine Common ○ Framework integrations ○ “Gedmo” Doctrine extensions ● Community support ○ Usage questions ○ Pull requests ○ Bug reports ● Security vulnerabilities Never-ending todo list

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

Watch out for feature creep

Slide 33

Slide 33 text

Ever-growing wish list ● Requested ORM features ○ Repository factories ○ Query filters ○ Criteria API ○ Result caching ● New ODM features ○ Sharding ○ Geo-spatial queries ○ Aggregation builder ● Refactoring ● PHP 7 support

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

Waiting to merge pull requests

Slide 38

Slide 38 text

Perfectionism vs. pragmatism

Slide 39

Slide 39 text

Milestones should not have an open door policy

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

Poppin’ tags

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

Semantic versioning Major: BC breaks Minor: New features Patch: Bug fixes

Slide 44

Slide 44 text

Semantic versioning Major: BC breaks Minor: New features Patch: Bug fixes Pre-release: Loophole!

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

Find a balance

Slide 48

Slide 48 text

Open-source can be a full-time job

Slide 49

Slide 49 text

No content

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

Becoming overwhelmed

Slide 54

Slide 54 text

Abandoned projects

Slide 55

Slide 55 text

How did I end up here?

Slide 56

Slide 56 text

/ping @jwage /ping @jwage /ping @jwage ...

Slide 57

Slide 57 text

No content

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

If you look around and can’t find the leader of your local user group… guess what? You are it. ― Cal Evans “

Slide 60

Slide 60 text

Open-source should be a team effort

Slide 61

Slide 61 text

ORM development over time

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

Cultivate and encourage your volunteers

Slide 69

Slide 69 text

Fast forward a few months...

Slide 70

Slide 70 text

No content

Slide 71

Slide 71 text

No content

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

These guys closed the gap

Slide 75

Slide 75 text

No content

Slide 76

Slide 76 text

Where do we go from here?

Slide 77

Slide 77 text

No content

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

On the road to 2.0.0 ● Remove deprecated or problematic APIs ○ YAML driver ○ requireIndexes ● Behavioral changes ○ Collection strategies ○ Embedded documents ● Internal refactoring ○ Change set calculation ○ Class metadata ● Direct PHP 7 support ○ Build upon the new MongoDB driver (ext-mongodb)

Slide 83

Slide 83 text

2015 – present

Slide 84

Slide 84 text

See you in another five years…

Slide 85

Slide 85 text

Photo Credits ● http://octodex.github.com ● http://www.mongodb-is-web-scale.com/ ● http://shirt.woot.com/offers/it-came-out-of-nowhere ● http://phicenter.org/wp-content/uploads/2012/08/stork_baby_delivery_720x540.jpg ● https://livingstills.tumblr.com/post/113724523047 ● http://www.donatoart.com/portraits/cartographer.html ● http://logisticalfictions.tumblr.com/post/86099686495/before-a-later-film-revealed-its-boring-mundanity ● http://www.reinventioninc.com/wp-content/uploads/2013/09/iStock_000008468780Small-e1380565027473.jpg ● http://giphy.com/gifs/thegoodfilms-cinemagraph-thegoodfilms-forrest-gump-JjLylCKqqQs5q ● http://giphy.com/gifs/cinemagraph-max-fury-xme2XN3AzQOEU ● http://dream-recover-live.blogspot.com.es/2013/05/just-keep-swimming.html ● http://i.huffpost.com/gen/1729387/images/o-SHARK-ATTACK-facebook.jpg ● https://twitter.com/kizmarh/status/553141889541877760 ● http://www.cartoonistgroup.com/properties/lester/art_images/cg56ea24513d0c7.jpg ● http://cdn.shopify.com/s/files/1/1067/0834/products/velvet_rope_dude_1024x1024.jpg ● https://speaktoall.files.wordpress.com/2013/03/macklemore-thrift-shop-artwork.jpg ● http://tkirda.github.io/slides-modern-web-tools/resources/images/semver.png ● http://static.neatorama.com/images/2014-04/The-Legend-of-Hodor-l.jpg ● https://angeliquepanagos.com/wp-content/uploads/2015/08/balance.jpg ● http://latestcalendar.weebly.com/uploads/4/2/7/1/42714133/8676421_orig.jpg