In this paper we present a modular, flexible and extensible RFID middleware architecture. The functionalities needed by an RFID middleware are already well studied, also there exists some standards which define them. We propose an architecture where these functionalities are developed in an event-oriented component model. This provides extra benefits such as loose coupling between components and an easyto-scale architecture.