Dankoy / jforwarder

Telegram bot for coub.com communities, tags and channels subscriptions.
https://t.me/coub_forwarder_bot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Community subscriptions initiator makes enormous amount of requests to sent_coubs_regisrty #84

Closed Dankoy closed 9 months ago

Dankoy commented 9 months ago

Describe the bug In initiator microservice for community subscriptions, performs over 100 requests to sent_coubs_reqistry api of subscriptions_holder service

To Reproduce Steps to reproduce the behavior:

  1. Go to zipkin
  2. Filter by service t-coubs-initiator
  3. See scheduler task with more than 100 spans for same request ?subscriptionId=3&dateTime=2024-01-20T21%3A12%3A56.990883944&size=10&page=0&sort=id%2CASC
  4. Probably same happens with other subscriptions.

Expected behavior Expected only one request for every active subscription. Not 100 requests for same subscription.

Screenshots image image

Dankoy commented 9 months ago

The problem was in per_page variable with too low value. Increased a bit. See #85