Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live-coding demo – Build your own backend in the redux style with GraphQL mutations (dispatch), pure serverless functions (reducers), and GraphQL subscriptions (updated state) #2

Open
marionschleifer opened this issue Oct 27, 2019 · 3 comments

Comments

@marionschleifer
Copy link

Title

Live-coding demo – Build your own backend in the redux style with GraphQL mutations (dispatch), pure serverless functions (reducers), and GraphQL subscriptions (updated state)

Abstract

What if it was possible to build backend features for our react apps in the same way that we use redux in our react apps? In this live-coding demo, I will show you how we’ll add backend business logic using the redux abstractions of dispatching actions, writing reducers as pure functions and subscribing to updated state. Our backend will be completely serverless and using open-source and managed services so that we’re not actually deploying and maintaining any servers. We will use GraphQL mutations from our react app to dispatch actions. These will trigger serverless functions which are pure and return the modified state, which will be persisted safely on a cloud-managed database. Portions of your app that are subscribed to the state using GraphQL subscriptions (live-queries) will automatically update! You will witness the raw awesomeness of being able to use javascript and graphql in a pattern that you are comfortable with to build backend features from scratch.

Your name (and pronouns)

Marion Schleifer

Contact Details

Twitter: @rubydwarf
Github: marionschleifer
Email: [email protected]

@dtmzr
Copy link

dtmzr commented Oct 28, 2019

Sounds pretty cool! :)

@ttraenkler
Copy link
Collaborator

@marionschleifer Indeed sounds interesting! I am curious what serverless and subscriptions mean in this context - do you have slides to share to get a better idea?

@marionschleifer
Copy link
Author

Sure: https://docs.google.com/presentation/d/1K8ZXGUAjHGygqSqXTz-gS5_FAHXcu338OQW9-wPHWyE/edit#slide=id.p. Most of it will be a live demo though 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants