HackerTrans
TopNewTrendsCommentsPastAskShowJobs

karmaniverous

no profile record

Submissions

Show HN: Win-link-router – route tel: links to WhatsApp (Windows)

github.com
1 points·by karmaniverous·há 6 meses·1 comments

Stan Tames Autoregressive Nonsense

twitter.com
2 points·by karmaniverous·há 6 meses·0 comments

Gex X Rocks but Whatever

medium.com
1 points·by karmaniverous·há 7 meses·0 comments

DynamoDB entity modeling, indexing and cross-shard querying at scale

karmanivero.us
1 points·by karmaniverous·há 8 meses·0 comments

Transforming Manual Testing from a Liability into a Strategic Asset

johngalt.id
3 points·by karmaniverous·ano passado·0 comments

Directing TEL Links to WhatsApp Desktop in Windows

karmanivero.us
1 points·by karmaniverous·ano passado·1 comments

Night Shift Economics: An Analysis

johngalt.id
2 points·by karmaniverous·ano passado·0 comments

Engineered Qualia, Confabulation, and Emergent Consciousness

karmanivero.us
3 points·by karmaniverous·ano passado·0 comments

[untitled]

1 points·by karmaniverous·ano passado·0 comments

Become a Remote US Paralegal

johngalt.id
2 points·by karmaniverous·ano passado·0 comments

How to cook a chicken by throwing ice cubes at it

old.reddit.com
3 points·by karmaniverous·ano passado·2 comments

Cone of Shame Cat Lamp

printables.com
7 points·by karmaniverous·há 2 anos·0 comments

Use Two WhatsApp Accounts on the Same Desktop

karmanivero.us
2 points·by karmaniverous·há 2 anos·0 comments

[untitled]

1 points·by karmaniverous·há 2 anos·0 comments

An improved related-posts widget for the Minimal Mistakes Jekyll theme

karmanivero.us
1 points·by karmaniverous·há 2 anos·0 comments

How to Drill a Triangular Hole [video]

youtube.com
2 points·by karmaniverous·há 2 anos·0 comments

Project Governance Toolkit – Agile, Git Flow and Design

karmanivero.us
2 points·by karmaniverous·há 2 anos·0 comments

[untitled]

1 points·by karmaniverous·há 2 anos·0 comments

Hacker News Submit – Chrome Web Store

chromewebstore.google.com
2 points·by karmaniverous·há 2 anos·2 comments

The Knight's Tour: Finding Some of Its Solutions

charlotte-sweeney.medium.com
1 points·by karmaniverous·há 2 anos·0 comments

comments

karmaniverous
·há 6 meses·discuss
Blog post here: https://karmanivero.us/win-link-router/
karmaniverous
·ano passado·discuss
If you know, you know. But not everybody does.
karmaniverous
·há 2 anos·discuss
Well, that's the nice thing about a library... when it works, all that effort happens under the hood. :)

By "regular ole" I presume you mean some flavor of RDBMS. Those have significant issues at scale that the newfangled platforms don't... but as you see there's a price to be paid at design time.

If I do my job right, you get to have your cake & eat it too!
karmaniverous
·há 2 anos·discuss
I mean srsly why use computers at all right.
karmaniverous
·há 2 anos·discuss
The key focus of EM is the implementation of a multi-entity data model along the lines of the Single Table Design Pattern.

Recall that, in DDB, your index has two parts: hash & range key. If you want to have many entities in the same table, then you need a way of distinguishing between different entities, and a way of locating an individual record. In your primary index, those account for your hash and range keys, respectively: the hash key is your entity differentiator, and the range key is your entity id (which may come from a different record property from one entity to another). If you follow the development of the article, you’ll see how this plays out with variously constructed keys across different indexes.

Now, forget EM sharding for a minute and let DDB manage your sharding. Say you launch your application with little data and a single shard. Over time your data scales & spills over onto additional shards. When you perform a search, DDB has no way of knowing which shards are relevant so it has to search ALL of them.

But from the application side, your data scaled over TIME. Therefore, if you know which shards were created when, you could limit a time-based search only to the shards that are relevant to the search parameters. And a LOT of searches involve a time window.

Within the context of EM, when I say a “shard”, I am talking about a unique hash key value like `user!1F`, where `user` is the entity type and `1F` is the shard key. These may or may not map to physical DDB shards, and the good news is that you don’t NEED to care… DDB will flex if you don’t.

EM has a lot of features that greatly streamline the dev experience when operating against a DDB table with a multi-entity data model. You don’t HAVE to use the sharding feature… it’s literally just a config item, everything else happens behind the scenes. But when you DO use it, EM splits a search across sharded data into MANY parallel searches, one per shard, then assembles the returns into a coherent result with a “page key” that is actually a compressed map of ALL the underlying page keys. You don’t have to care about THAT, either… just pass the compressed string back to EM and it will rehydrate the page keys & perform the next set of searches.

So you get to choose your own adventure… you can run every entity on a single “shard” or run in parallel. I’d just keep an eye out for any drop in performance at scale and add a shard bump when I see it.

Also worth noting: EM is actually platform-agnostic. There is a companion repo that contains the DDB-specific client. This is still a bit in flux btw so be kind lol. Anyway the point is that other platforms that don’t have AWS’ resource footprint may not handle sharding as well, and EM will be able to render effectively the same result.

Hope that answers your question!

P.S. Worth noting: in addition to searching across multiple SHARDS, an EM query can also search across multiple INDEXES. Say you want to query on “name” and you want to query both your firstName and lastName indexes with the same “name” value. With EM, this is a SINGLE query that returns a combined, paged, deduped, sorted result set. Handy.
karmaniverous
·há 2 anos·discuss
This approach is not really compatible with the single-table design pattern, which has some significant advantages. The point where performance degrades due to the issues you mentioned would be a good point to start applying sharding.
karmaniverous
·há 2 anos·discuss
Very cool of you to say so!

I've actually been using the JS version of EM in production for over a year. It's been working flawlessly.

The TS version is a complete rewrite that factors in a BUNCH of lessons learned and is completely--maybe obsessively lol--type-safe. The query builder got a LOT of attention, and the fluent API reduces even complex queries to a super-compact, declarative coding experience.

I'm pushing a big update tonight and will then resume my focus on the demo & docs, basically the companion stuff to this one. Should be ready for use in a couple of weeks.

Thanks for the interest, it really means a lot to me!
karmaniverous
·há 2 anos·discuss
I'm the author, and thanks for asking! The article is really just background, submitted by a friend. Still building the demo & documentation, so my apologies for the confusion.

Entity Manager is a framework for defining, managing, and most importantly QUERYING an entity model with DynamoDB. It's actually platform-generic, so the DynamoDB-specific machinery is implemented at https://github.com/karmaniverous/entity-client-dynamodb

Entity Manager's most important feature is that it permits a simple, scheduled partition sharding configuration and then transparent, multi-index querying of data across shards with a very compact, fluent query API.

This resolves the biggest challenge of using DynamoDB at scale, which is that very large data sets MUST be sharded, and a given query can ONLY operate against a single shard. If you're querying on the basis of a related record, you won't know which shard your results will be on so you must query ALL shards.

Entity Manager reduces this to an effortless operation: once you've defined your sharding strategy for a given entity, you can forget sharding is even a thing.

For some more color on Entity Manager within the context of SQL vs NoSQL databases, please review this (much shorter!) article: https://karmanivero.us/projects/entity-manager/sql-vs-nosql
karmaniverous
·há 2 anos·discuss
I’m laying down a big bet on Bali! Let me share the evidence that has inspired me to take this leap. Maybe it will inspire you to jump in with me!
karmaniverous
·há 2 anos·discuss
I don't know if this is unusual, but it's striking. From Polymarket:

ELECTION WINNER Trump: 64% Harris: 36%

POPULAR VOTE WINNER Harris: 64% Trump: 37%

Looks like it's gonna be a bumpy ride lol.
karmaniverous
·há 2 anos·discuss
I like it, but I like PlantUML better. Shitty documentation but awesome UML support, and also supports GraphML and a bunch of smaller libs like C4.
karmaniverous
·há 2 anos·discuss
Ok fair enough but didn't have the same ring as "best known for promoting his own design artifacts".
karmaniverous
·há 2 anos·discuss
Haha guilty! Doesn't show up well on mobile. Fixing it today!
karmaniverous
·há 2 anos·discuss
"A picture is worth a thousand words" is just gabble until you draw one worth a million of them :)
karmaniverous
·há 2 anos·discuss
Watch a complex Javascript configuration object collapse into declarative goodness thanks to type safety, abstraction, and generic design. Just had a really good day today so thought I'd share!
karmaniverous
·há 2 anos·discuss
When you follow somebody on a social media platform, what if you had an app that followed them for you on EVERY platform?
karmaniverous
·há 2 anos·discuss
[flagged]