Replies: 1 comment 1 reply
-
I don't think we'd do that at this point — moving properties from a top-level struct into an embedded struct is a breaking change unless you also leave the original properties in place too. And even if it were possible, I'm not sure that an insert-only client is so important to merit this kind of special treatment that might reduce our flexibility for future client changes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
In our architecture we depend heavily on separating the insert side from the worker side. This seems to be common given that the documentation has a dedicated section for it. This section also mentions the queue and worker options are specifically important here, but does not mention the other options. I'm curious to understand which other options in the river.Config structure are important/relevant to the functioning of an insert-only client. And also: maybe some options need to be the same between the insert-only and worker size for correct functioning?
I've gone through the options without further looking into the source code and my suspicion a that the following options are important:
NOTE: i'm wondering if the insert-only client is common enough to be formalized in the type system? So something like
NewInsertOnlyClient()
. That takes a newriver.InsertOnlyConfig
as input. The river.Config could embed this new structure.Beta Was this translation helpful? Give feedback.
All reactions