Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minimal example #47

Merged
merged 1 commit into from
Jan 25, 2020
Merged

minimal example #47

merged 1 commit into from
Jan 25, 2020

Conversation

dzmitry-lahoda
Copy link
Contributor

@dzmitry-lahoda dzmitry-lahoda commented Jan 24, 2020

What can be wrong (just complaining, no so important):

  • the need to open Confluent.Kafka, longer one liner
  • Replacing ProduceAsync with Produce may appear for more proper-modern-expected API
  • need to create logger, allow for default null logger

What can be wrong (just complaining, no so important):
- the  need to `open Confluent.Kafka`, longer one liner
- Replacing 'ProduceAsync` with `Produce` may appear for more proper-modern-expected API
- need to create logger, allow for default null logger
@bartelink bartelink mentioned this pull request Jan 24, 2020
5 tasks
@bartelink
Copy link
Collaborator

very nice, thanks!

the need to open Confluent.Kafka, longer one liner

If you're referring to having 2 namespaces, I think its valuable to use CK stuff as much as possible and not overload (which was def not the philosophy in v 0.x of this lib). By and large, CK 1.x is getting very complete in terms of config stuff so I'd venture that requiring it is pretty normal.

In general, I'd suggest opening CK and then having explicit FsKafka prefixes where required so it stands out

Replacing 'ProduceAsyncwithProduce` may appear for more proper-modern-expected API

CK 1.x tends to expose async and sync, so this is following the pattern. I agree that removing might not be a bad idea, but that'd need to be a 2.x thing

added to #48

need to create logger, allow for default null logger

the opinionated choice of coupling to a concrete logger is not something that I feel should be hidden so this is a "by design"

@bartelink
Copy link
Collaborator

Let me know when you're ready for me to (squash-) merge (and confirm this supersedes #46 by closing same)

@bartelink bartelink merged commit df79e99 into jet:master Jan 25, 2020
@dzmitry-lahoda
Copy link
Contributor Author

I assume F# is next Python in some areas. Pythonist could expect single namespace and default logger I guess. So opinion to ensure Data Engineering and Data Science flows got into F# in oneliners in next several years.

@bartelink
Copy link
Collaborator

There's [vain] hope in some quarters ;)

We could generalize to a M.E.L based dep, but it would still need to be fulfilled, and I have stuff e.g. in FsKafka that includes deep structures that come out cleaner in a json log when you use Destructurama.FSharp alongside. I'm not against that happening in FsKafka, Propulsion and Equinox but

a) if one does it, they should all do it (depend on MEL and use more boring types e.g. no options, must be Nullable etc)
b) we'd need to find someone in 2020 that's still thinking NLog and NUnit are the way to go!

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.

2 participants