Resource queue interface and in-memory implementation