Question on best practice. I am writing a durable object such that I would like to have some log inf
Question on best practice. I am writing a durable object such that I would like to have some log information about who has interacted with it. The object itself will contain a small bit of information but scales horizontally accross a lot of users.
I would like to store some log information about who is interacting with the object. Where in the cloudflare ecosystem should this live?
My instinct is D1, then appends become very easy, as does shrinking, trimming etc... I could write some batch codes that backup data to R2 on a semi-regular basis.
Because of the potential gerth of the log data, I don't think R2 makes sense as I would have to do a set/get on each interaction, which is a lot of memory to pull and set, which introudces a brittleness that I am not comfortable with.
I can't imagine that I am the person that have considered this recipe. How have other people solved it?
I would like to store some log information about who is interacting with the object. Where in the cloudflare ecosystem should this live?
My instinct is D1, then appends become very easy, as does shrinking, trimming etc... I could write some batch codes that backup data to R2 on a semi-regular basis.
Because of the potential gerth of the log data, I don't think R2 makes sense as I would have to do a set/get on each interaction, which is a lot of memory to pull and set, which introudces a brittleness that I am not comfortable with.
I can't imagine that I am the person that have considered this recipe. How have other people solved it?
