Abstract COntrol, Data Acquisition and Communication (CODAC) real-time software codes are key elements for the operation of a fusion device both for the machine protection and for the optimization of the experiments. In 2013, following the WEST (W -for tungsten- Environment Steady-state Tokamak) upgrade of Tore-Supra, the whole legacy acquisition system has been re-factored. The WEST CODAC framework which inherited the older implementations used over 20 years on TORE Supra has been reorganized into primary software components corresponding to basic technical features, such as Database Access, Inter-process Communications, Real-time Device Management, Timing System Network, Finite-State Machine, and Shared Memory Network. In addition, a new modern middleware component named Westbox has been developed, to simplify developments for native diagnostic upgrades and cross-platform data acquisition hardware and software from guest collaborators.