Wrapping Up

Let's highlight the main contents of this chapter.

Fully functional shopping cart

We’ve built a fully functioning shopping cart using the tools we’ve covered throughout this course. We had to flex all of our Channel and real-time system skills to build this relatively complex feature. We used the basic handle_in and handle_out features in Phoenix Channels to take client commands and send data to the clients. We leveraged PubSub with dynamic subscriptions to track when an item goes out of stock. We made our system work across distributed servers by using an order of operations in our inventory updates that provides our shoppers with a consistent view of their cart.

Get hands-on with 1200+ tech skills courses.