Re: records with without fields?

2019-12-13 Thread Vance Duncan
My immediate thought is observe the YAGNI principle and only create it if and when you need it. Otherwise, you run the risk of requiring non-interchangeable re-identification if you need required, non-default, fields when the need materializes. On December 13, 2019, at 9:25 AM, roger peppe wr

Re: records with without fields?

2019-12-13 Thread Vance Duncan
name it MyRecord2, or whatever. This is what I meant by “reidentify”. On Fri, Dec 13, 2019 at 12:46 PM roger peppe wrote: > > > On Fri, 13 Dec 2019 at 15:02, Vance Duncan wrote: > >> My immediate thought is observe the YAGNI principle and only create it if >> and when you

Re: records with without fields?

2019-12-13 Thread Vance Duncan
PM roger peppe wrote: > > > On Fri, 13 Dec 2019 at 23:08, Vance Duncan wrote: > >> Sorry about that. I was assuming some kind of name-based schema registry >> lookup. Assume you are looking up schemas by name using a schema registry. >> Let’s say the record is name

Re: records with without fields?

2019-12-15 Thread Vance Duncan
14 Dec 2019 at 04:58, Vance Duncan wrote: > >> Because you will forever be limited to adding nullable fields to that >> record. It will forever be a weak contract. That may be OK, depending on >> the situation. You just won’t be able to enforce semantics through the >>

Re: name-agnostic schema resolution (a.k.a. structural subtyping?)

2019-12-21 Thread Vance Duncan
compatible event, you'd add a CloudEvent >alias to your record. > > None of the options are particularly nice. 1 is probably the easiest to > do, although means you'd still need some custom logic when decoding > records, meaning you couldn't use stock decoders. >

Re: Recomended naming of types to support for schema evolution

2019-12-31 Thread Vance Duncan
s. Btw. I >> favored this variant(ie. no ID in name/namespace) because in this setup, >> after I introduce new schema version, I do not have to change imports in >> whole project, but just one line in pom.xml saying which directory should >> be compiled into java files. >> >> so what could be the suggestion to correct naming-versioning scheme? >> thanks, >> M. >> > -- Regards, Vance Duncan mailto:dunca...@gmail.com http://www.linkedin.com/in/VanceDuncan (904) 553-5582

Re: Companies using Apache Avro

2021-01-25 Thread Vance Duncan
es > that make use of Apache Avro? I'm trying to collect a small list for > research purposes and my search is not yielding many results apart from > Facebook. > > Thanks in advance, > > -- > Juan Cruz Viotti > Software Engineer > https://www.jviotti.com > -- R