Better HN
topnewbestaskshowjobs
Log inSign up

jgeraert

32 karma · joined Sep 26, 2013 (13y ago) · 12 submissions

Submissions

1.

Understanding Consistency in Databases: Beyond the Basics(medium.com ↗)

17 points · by jgeraert · 1y ago · 4 comments

comment 8y ago · link · parent

Well, there are multiple services involved in an email stack so I guess it does what you ask for.

comment 8y ago · link · parent

I guess the same goes for Lambda.

comment 8y ago · link · parent

I'm so glad someone finally confirms my idea about using hibernate. I've been in constant battle with developers that map full object graphs coming Frome some endpoint to hibernate/jpa annotated classes and then throw it at hibernate. Here you save this... It just doesn't work that way very well. It's always a mess with relationships. Whereas you run your logic on entities attached to the session things work out nicely.

comment 8y ago · link · parent

Isn't the log of deleted users subject to the GDPR then?

comment 9y ago · link · parent

Seeing this as well in proprietary software sold by one of the biggest erp software vendors... And it's still not fixed and likely won't be fixed anytime soon.

comment 9y ago · link · parent

Great idea. I will start by developing my to-do app...

comment 9y ago · link · parent

> One thing that absolutely needs library/drivers is persistence of the event store. I say this having built my own as well as contributing to open source ones in the past. It is still a hard and not well solved problem to do this well. Again it can be simple, but in the real world it isn't usually that simple.

Would it also be such a hard thing to do if you can delegate the actual persistence to something like a rdbms? What are the typical pitfalls?

comment 11y ago · link · parent

I tend to abstract away my queries using database views. This way the query in application becomes very simple (select * from view where $simplepredicate).

In my test database (sqllite,hsqldb,derby,...) i create actual tables containing test data with the same definition as the views.

This allows me to have rather complex queries that are database specific and still have fast running database queries.

The views themselves i test separately. They are also easier to fix in production than code releases, and can also be replaced by materialized views if necessary.

Inserts/updates are typically simple too.

comment 11y ago · link · parent

Also on windows.

comment 13y ago · link · parent

Clever. We did something similar for a friend getting married. Instead of giving his present directly we created a text file encrypted with his public pgp key. We printed out the ascii-armored cryptotext and handed it over. He had lots of fun typing it back into his computer.

comment 13y ago · link · parent

Because the browser is going to check if the certificate is revoked as part of the ssl handshake. We have gotten sites being not available because the service that the browsers use to do this validation were not responding fast. The handshake took up to a minute.