October 18, 2023
-
1
Min Read

Introducing Momento Leaderboards: the serverless leaderboard service

It’s never been easier to build competitive leaderboards.
Anita Ruangrotsakun
Headshot of the blog author
by
Anita Ruangrotsakun
,
,
by
Anita Ruangrotsakun
by
green squirrel logo for momento
Anita Ruangrotsakun
,
,
Gaming

It’s all fun and games until you build an app with some competitive component and then realize you have no easy way to show who’s in first place! Existing general purpose data structures, like sorted sets, can be coerced into functioning leaderboards, but they don’t always provide a great developer or end user experience.

That’s why we launched Momento Leaderboards, a new serverless product to address this common game developer pain point. Momento Leaderboards is optimized for rapid ingestion and memory efficiency, the APIs were purpose-built with game developers in mind, and, as a serverless solution, there is no operational maintenance to slow you down.

Momento Leaderboards is currently available in the Node.js and Web SDKs. In just a few minutes, developers can create a new leaderboard and try out the current set of features:

As you dive in, there are a few important things to note:

  • Element ids must be a number
  • Upsert is supported, not incrementing an existing score
  • A default value time to live (TTL) of 7 days is automatically used on leaderboards

For an interactive preview of Momento Leaderboards, check out our example React app.

Leaderboard Demo

Try Momento Leaderboards today and let us know what you think on Discord and check out the docs website to learn more! 

If the default 7-day TTL for leaderboard items doesn’t work for you, reach out to support@momentohq.com to discuss removing limits.

Anita Ruangrotsakun
by
Anita Ruangrotsakun
,
,
by
Anita Ruangrotsakun
by
green squirrel logo for momento
by
Anita Ruangrotsakun
,
,
Author
Anita Ruangrotsakun

Anita is a software engineer on the Developer Ecosystem team at Momento, working to provide an excellent developer experience and help people build serverless applications. When she’s not working, Anita enjoys reading, building dynasties in the Sims 3, and finding new foodie spots in the PNW.

Author
Author
Open