diff --git a/domain/shoppingbasket/scheduler/scheduler.go b/domain/shoppingbasket/scheduler/scheduler.go new file mode 100644 index 00000000..99cd92b4 --- /dev/null +++ b/domain/shoppingbasket/scheduler/scheduler.go @@ -0,0 +1,5 @@ +package scheduler + +// TODO: implement cron job or scheduler +// To check the expiration time in the MYSQL database and change the shopping cart status to expired +// and clear the cart from the cache diff --git a/shoppingbasketapp/delivery/consumer/consumer.go b/shoppingbasketapp/delivery/consumer/consumer.go new file mode 100644 index 00000000..02e42032 --- /dev/null +++ b/shoppingbasketapp/delivery/consumer/consumer.go @@ -0,0 +1,5 @@ +package consumer + +// TODO: implement subscriber or consumer +// When the shopping cart is successfully paid +// the service waits for a message in the broker to change the cart status to paid and clear it from the cache.