top | item 44460274

(no title)

kwere | 8 months ago

how much game data do you store on postgres ? do you use classical update cycles ?

discuss

order

lemphi|8 months ago

Basically the bare minimum amount of data is stored in Postgres. Many of the locations are stateless, or it's okay if they are wiped on server restart (like NPC shop inventories, since they can just be regenerated on server startup, so they only exist in server memory). And most of the game world is just included in the large static bundle (item names and descriptions, dialogue, etc.).

The main data stored in Postgres are things that must be durable, like your items, currency, unlocked avatars, friends list, gallery, garden, guilds, friendship levels with villagers, profile information, personal shops, and things like that. But even in these cases integer identifiers are used (for things like item IDs and avatar IDs), so the tables remain very lean.

What do you mean by classical update style? I'm not sure if you're still referring to Postgres or if you're talking about the minigames (like does the update loop run at a fixed internal?), or maybe something else entirely?