The present invention relates to an electrode system for measuring the concentration of an analyte under in-vivo conditions, comprising an electrode 5 with immobilized enzyme molecules and a diffusion barrier that controls diffusion of the analyte from body fluid surrounding the electrode system to the enzyme molecules.