Module Description

Implements XEP-0012: Last Activity.

Use with caution, as it was observed that a user disconnect spike might result in overloading the database with "last activity" writes.


  • iqdisc (default: one_queue)
  • backend (atom, default: mnesia): Storage backend. Currently mnesia, rdbms and riak are supported.

Example Configuration

{mod_last, []}


If you'd like to learn more about metrics in MongooseIM, please visit MongooseIM metrics page.

Backend action Description (when it gets incremented)
get_last A timestamp is fetched from DB.
set_last_info A timestamp is stored in DB.