We can use generic python class to store Carts, so it can be sent using rest o webservice and not using a database at all.