From 5f57c9aa4419b0075af4616145deea004e5cd7c4 Mon Sep 17 00:00:00 2001 From: mzfarshad Date: Tue, 5 May 2026 22:40:51 +0330 Subject: [PATCH] todo for implement scheduler and consumer --- domain/shoppingbasket/scheduler/scheduler.go | 5 +++++ shoppingbasketapp/delivery/consumer/consumer.go | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 domain/shoppingbasket/scheduler/scheduler.go create mode 100644 shoppingbasketapp/delivery/consumer/consumer.go 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.