readonlyMap module from fp-ts a lot to help deal with the Map we extensively use in our code base.HashMap but we would have to migrate all our code and probably write custom serialization/deserialization function to keep our current data structure in the database.