Slide 1

Slide 1 text

George Leontiev AgentConf — February 2019

Slide 2

Slide 2 text

George Leontiev @YukiFartlek

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Datastorage Thrift HTTP

Slide 7

Slide 7 text

HTTP Thrift Datastorage

Slide 8

Slide 8 text

HTTP Thrift Datastorage

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

HTTP Thrift GraphQL API

Slide 11

Slide 11 text

Schema

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

A federated database brings together multiple data sources so that they can be queried and mutated uniformly.

Slide 14

Slide 14 text

GraphQL brings together multiple data sources so that they can be queried and mutated uniformly.

Slide 15

Slide 15 text

Strato brings together multiple data sources so that they can be queried and mutated uniformly.

Slide 16

Slide 16 text

Column({ name = "User/birthday", source = DbColumn({ dest = "twitter_db", dataset = "birthdays", mapping = KeyValue({ key = Type(Long), // User ID value = Type(Long) // Timestamp }) }) })

Slide 17

Slide 17 text

Column({ name = "User/birthday", source = DbColumn({ dest = "twitter_db", dataset = "birthdays", mapping = KeyValue({ key = Type(Long), // User ID value = Type(Long) // Timestamp }) }), graphql = Field("User", "birthday") })

Slide 18

Slide 18 text

Subscriptions

Slide 19

Slide 19 text

No content

Slide 20

Slide 20 text

Clients subscribe to an event with a GraphQL query and receive payloads. — Laney Kuenzel

Slide 21

Slide 21 text

Clients subscribe to an event with a GraphQL query and receive payloads.

Slide 22

Slide 22 text

Subscriptions EventBus Event Producer

Slide 23

Slide 23 text

Clients subscribe to an event with a GraphQL query and receive payloads.

Slide 24

Slide 24 text

def execute( query, against: Event, as: User ): Payload

Slide 25

Slide 25 text

{ "query": "subscription { random_tweet { id } }", "event": { "type": "random_tweet", "tweet_id": "..." }, "user": { "id": "12" } }

Slide 26

Slide 26 text

API EventBus Event Producer Subscriptions

Slide 27

Slide 27 text

Clients subscribe to an event with a GraphQL query and receive payloads.

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

Live Pipeline { "topic": "tweet_engagement/20", "payload": { ... } } POST /subscribe?topic= tweet_engagement/20

Slide 30

Slide 30 text

def topic( query, for: User ): String

Slide 31

Slide 31 text

subscription { random_tweet { __typename ... on Status { topic } ... on Tweet { id text } } } { "data": { "random_tweet": { "__typename": "Status", "topic": "graphql/sM_xI92k" } } }

Slide 32

Slide 32 text

{ "topic": "graphql/sM_xI92k", "payload": { "data": { "random_tweet": { "__typename": "Tweet", "id": "...", "text": "..." } } } } POST /subscribe?topic= graphql/sM_xI92k Live Pipeline

Slide 33

Slide 33 text

Subscriptions API Live Pipeline EventBus subscription { random_tweet { ... } } { "topic": "graphql/sM_xI92k", "payload": { "data": { "random_tweet": { ... } } } } { "random_tweet_id": "..." } { ... "topic": "graphql/sM_xI92k" ... } Event Producer

Slide 34

Slide 34 text

Tips

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

{ user(id: "12") { name followers { name followers { name followers { name followers { name } } } } } }

Slide 39

Slide 39 text

POST /graphql/eyBuaWNlIHsgdHJ5IH0gfQ

Slide 40

Slide 40 text

enabling technology noun An invention or innovation, that can be applied to drive radical change in the capabilities of a user or culture. Enabling technologies are characterized by rapid development of subsequent derivative technologies, often in diverse fields.

Slide 41

Slide 41 text

adjacent possible noun A kind of shadow future, hovering on the edges of the present state of things, a map of all the ways in which the present can reinvent itself.

Slide 42

Slide 42 text

No content

Slide 43

Slide 43 text

George Leontiev @YukiFartlek

Slide 44

Slide 44 text

No content