Recent years have seen a rapid growth of real-time data services that has been widely used in safety-critical applications. In this paper, we will introduce the design and implementation of an active real-time and embedded database system, called Agilite, which provides data consistency guarantee and real-time data collecting, storage and distribution. Firstly, we present a real-time data manage mechanism based on ECA rules with temporal events. Secondly, we give the architecture of Agilite. Agilite supports object-oriented data model and nested transaction model. The data model covers temporal data and non-temporal data. The temporal data, which is attached with timestamp, can be updated directly through "green channel" without waiting for being scheduled. Thirdly, a rule engine which provides a visual language for ECA rule definition is discussed in detail. The visual language is featured with strong expressive power of event temporal constraints. Finally, an implementation of Agilite is given based on RT-Linux, which includes the components of schedule engine, lock manager, log manager, session manager, event manager and data manager. Experiments have shown the high efficiency and predictability of Agilite.