Skip to main content
8 votes

A thread-safe performant URL Shortener in Java

Thread-safety of addUrl() Method computeIfAbsent() is guaranteed to be executed as an atomic action when invoked on a ...
Alexander Ivanchenko's user avatar
6 votes

A thread-safe performant URL Shortener in Java

The concurrency looks okay to me, given that the compute() calls lock urlToKey and keyToUrl (...
Toby Speight's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible