Better HN
topnewbestaskshowjobs
Log inSign up

ComNik

219 karma · joined Feb 24, 2012 (14y ago) · 98 submissions

https://www.nikolasgoebel.com/

my public key: https://keybase.io/ngoebel; my proof: https://keybase.io/ngoebel/sigs/C17WmorsBKpdFUHXXyYfXfPANTUfzcEaw4xxtI6Xy4I

Submissions

comment 11y ago · link · parent

Yes, I fully recognize the problem with double-writing. I will definitely try out Bottled Water. I was also thinking about replacing Kafka with a much simpler, lower-throughput system (because we are lightyears from LinkedIn's requirements).

Two reasons why I can't just use postgres (I'd love to): 1.) Kafka (or whatever queue we settle on) will be used for logs and metrics as well, data that doesnt flow through postgres.

2.) Postgres stores the data-model of my business-domain, at the lowest, normalized level. But derived data-stores are inherently denormalized and I want to be able to use them without talking back to my source-of-truth all the time. So currently I'm passing DTOs to Kafka, just like I would to any API request. This data is not easily available at the postgres-level.

I'm not yet sure on the right abstraction level for events. It seems very natural to have them contain information that I would send to clients directly.

comment 11y ago · link · parent

Thank you for your detailed thoughts. You obviously have much more practical experience with this kind of system.

Many of the problems you mentioned I am aware of, and also have no workable solution yet (detecting lost messages being the biggest - Merkle-tees sounds like a very interesting approach, maybe even applied at the log-level?).

As mentioned in another reply, Kafka does support the kind of "pointer-to-log" setup you mention. Also Kafka is designed for lots of consumers, each with different characteristics. In principle, I should be able to sync something like memcache with the same information I need to sync Elasticsearch. The same holds for a websocket-server that reads from this stream and forwards new events to web-app clients. So I don't see the need for more than one "queue" yet, maybe that will show up in practice.

Also your setup would require a lot more coordination to handle updates from multiple postgres instances, if I understood correctly.

That being said, I'm still in the experimental phase with all of this, I will publish a writeup once I gain a bit more experience.

comment 11y ago · link · parent

Just today I successfully finished an experiment: An existing web-app with Postgres as the source of truth pushing update events to a Kafka queue. From there, a screenful of Go forwards those events into Elasticsearch.

It doesn't solve every problem and it might be a lot of new parts if you're not going to use Kafka for anything else. I will be using it for other things like caching and push events. This kind of syncing problem seems to crop up in a lot of places.

A nice thing is that I don't have to care about Elasticsearch durability much, because I can simply rerun the ingester from the beginning of the log, as long as Kafka doesn't lose data.

comment 11y ago · link · parent

I like this one: http://mochajs.org/ Gets the job done and stands out amongst todays usual landing pages.

comment 11y ago · link · parent

Software Engineer / Wantrepreneur.

Playing games, wondering how a game gets on the CD. Even though I loved it, a few years in game programming seemed like it was not "useful" enough. Transitioned to general software-, especially web-development. Started studying CS when the time came.

It's been almost 9 years since the first line of code and for now it seems like this will be the thing I do for some time.

comment 11y ago · link · parent

Really really nice. Enjoyed playing around with it. The resulting images are very appealing to me.

comment 11y ago · link · parent

Really like the design, especially the search/menu box. It would be very nice to add proper support for tabs, especially when inserting larger blocks of code.

comment 11y ago · link · parent

I was thinking the exact same thing when I first read about DRF's Serializers. Also I don't quite get why serialization is always expected to work automatically, at least not in the context of mapping a business layer to an API layer (e.g. for JSON consumption), as those domains don't have to map directly onto each other.

Therefore, for an ongoing project I've implemented something along the lines of your idea (if I got that correctly), by describing API-Layer models in terms of properties, which are just named sets of pure lambdas. The most general property only requires a single one to compute the property value from an input business-model.

This allows for some very nice things, especially with regards to API-level functionality like support for nested ?expand=, ?only=, and such niceties.

comment 11y ago · link · parent

Happy to hear that :) Going to get my copy as well.

comment 11y ago · link · parent

Old like 1994 old? Thanks for the recommendation.

comment 11y ago · link · parent

Would you pay for that? In something like a GitHub Enterprise setting, closed source but self-hosted?

Something like FB-Groups for organizations of all kind fell out as a byproduct of our startup and we are toying with the idea of trying to sell that part in isolation. Basically you get your own, hosted / self-hosted FB-Groups, plus a bit more flexibility regarding permissions and group management. For example you could introduce someone external into a sub-topic in one of your groups, without exposing him to the rest of the group (not sure if that is possible with FB groups).

[Edit: Grammar]

comment 12y ago · link · parent

Thanks for clearing that up, makes a lot of sense to me. I too would prefer the single transactor model.

comment 12y ago · link · parent

Could you elaborate on that?

comment 12y ago · link · parent

Having only read the abstract: Am I correct assuming this could be used as the core piece of implementing something like Datomic?

I have been thinking a bit about how amazingly useful a generic, distributed B-Tree would be, thanks to it's applicability with immutable data structures.

comment 12y ago · link · parent

Is finding Clojure people that hard (honest question)?

The Clojure + ClojureScript approach has many more batteries included. You get all the benefits of reusing the codebase on both sides of the fence while the language is solving the "Transactional Store", efficient dirty checks, nice server-side concurrency primitives and many unrelated problems for you.

comment 12y ago · link · parent

Is there a distributed, ZFS-like filesystem usable in clustered production environments today?

I'm intrigued by the idea of Git-like filesystems, but am not aware of any great clustered filesystems at all.

comment 12y ago · link · parent

Would also recommend Christopher Alexander's "Notes on the Synthesis of Form".

Is Zero to One worth the read?

comment 12y ago · link · parent

Reading: Jaron Lanier - "Who Owns the Future?"

Read: Jessica Livingston - "Founders at Work"

comment 12y ago · link · parent

Maybe you're talking about the about page which this submission links to. The real landing page is quite focused on the acutal stories :)

comment 12y ago · link · parent

~100$ / year from an Amazon Price Tracker (http://www.rankique.com/) I wrote a long while ago.

It's 100% passive and is free to run, although some SEO should increase that, which frankly I neither have the time nor the expertise to do.

comment 12y ago · link · parent

Because I didn't want to add so many layers at once, I just implemented Stores -> ControllerView -> View -> direct Store call.

As far as my understanding goes that should be fine for most use-cases. The only reason that really requires a Dispatcher would be synchronization of the incoming Store mutations.

52.

On Defining "Democracy"(spectrum.ghost.io ↗)

1 points · by ComNik · 12y ago · discuss

comment 13y ago · link · parent

Thank you :) This was my first real web-project, so I had no idea what to expect. I wanted to get 1000 uniques / month and hoped they would generate around $100+ / month. I'm currently at a tenth of that, so the general ratio was achieved :)

comment 13y ago · link · parent

I'm not sure about the hn-profile :/ just send me a mail to me@nikolasgoebel.com :)

comment 13y ago · link · parent

Thanks for the bug, I'll look into that. And yes, I still don't know what I was thinking when choosing the name...

comment 13y ago · link · parent

That is an interesting idea, although, IIRC, there was something about Kindle content with the affiliate program...

comment 13y ago · link · parent

Thank you :) Jep, Amazon Affiliates.

comment 13y ago · link · parent

http://www.rankique.com/ is a price-tracking site for Amazon. It would probably need a renaming and some SEO-love, as it's currently generating about 5$/month (with zero time spent on it). Was once supposed to evolve into a better product search engine, but I've lost interest a while ago (except for personal use, it really can save a lot of money).

59.

Least Resistance problem-solving.(blog.nikolasgoebel.com ↗)

1 points · by ComNik · 13y ago · discuss

60.

A Quick Introduction to Apache Cassandra(sitepoint.com ↗)

2 points · by ComNik · 13y ago · discuss

1234