#Discord Shards

1 messages · Page 1 of 1 (latest)

digital hound
#

Do I understand correctly that shards can be used to split a bot into multiple hosts? If so, how to do it correctly? And is it possible to divide the functionality into shards (for example: main shard, spare shard, shard only for music)?

plain pagoda
steady wren
#

no that's called clustering

#

you can divide the shards in different hosts clustering your Bot

#

skelmis wrote this one

digital hound
#

^ very good btw. im still using

digital hound
#

Thanks, I've solved clustering. But one question remained unresolved - is it possible to divide the functionality into separate shards or processes? (example: music in JuniperBot)

plain pagoda
#

Oh, self-advertise: you can join to Disnake RU using last link in #info

lusty elm
#

Not within the bot. But you could farm it off to another process

novel wraith
#

Hi all, I'm rewriting my bot in PHP (yes, I know my baby error..) with Disnake library. All goes very well, Python is very simple and friendly. My choice is for AutoShardedInteractionbot model. I have to translate many slash commands and app commands also. I'm using in backend mariaDB and Redis (Soon hope to migrate all to Redis). The question is: about sharding and these DB backend technologies what is the best practice to use in developing ? what are the point of attention to write correctly a bot that use sharding ?