Skip to content

tap: add kafka mode#1254

Draft
haileyok wants to merge 8 commits intomainfrom
hailey/tap-kafka
Draft

tap: add kafka mode#1254
haileyok wants to merge 8 commits intomainfrom
hailey/tap-kafka

Conversation

@haileyok
Copy link
Member

With this set of changes, I was able to get from ~6k evt/s over the websocket to ~ 9k evt/s when using SQLite, and roughly 17k evt/s when using Postgres + tuning. this might not be a thing for merging, but showing an example of how we can increase the backfill speed significantly under the right conditions...

Comment on lines +135 to +136
atkafka.WithEnsureTopic(true), // ensures that the topic has been created
atkafka.WithTopicPartitions(24), // TODO: partition count env var
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these should actually be configurable, probably

Comment on lines +151 to +154
if backoffUntil, ok := r.pdsBackoff.Load(pdsURL); ok {
if time.Now().Before(backoffUntil) {
return false, nil
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are almost exclusively doing reads out of this map, swapping it out with sync.Map instead of that mutex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant