1. A resistive switching device comprising: an opening disposed within a first dielectric layer; a conductive barrier layer disposed on sidewalls of the opening; a fill material comprising an inert material filling the opening; a solid electrolyte layer disposed over the opening, the solid electrolyte layer contacting the fill material but not the conductive barrier layer; and a top electrode disposed over the solid electrolyte.