CQRS Demo: replica service

Users:

Model with default synchroniaztion mechanish

ID
Username
{% for user in users %}
{{ user.id }}
{{ user.username }}
{% endfor %}

Products:

Model with custom serializer and relation control.

ID
Type
Name
{% for product in products %}
{{ product.id }}
{{ product.product_type.name }}
{{ product.name }}
{% endfor %}

Purchases:

Custom storage (redis cache)

ID
User ID
Product
Time
{% for purchase in purchases %}
{{ purchase.id }}
{{ purchase.user_id }}
{{ purchase.product_name }}
{{ purchase.action_time }}
{% endfor %}