Flywheels are an alternative to batteries for grid stability. Very little interest in adding them due to the continued advancement of batteries. I'm actually surprised how often they're missed as a viable solution.
In that scenario, neighborhoods would take a while to fill up their capacity but once those capacities were full they could easily handle brownouts and temporary disruptions without affecting the larger grid.