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