It's exactly how I live in Sweden, even though I'm in a suburb some 15km away from the centre of Stockholm, living in a house by the forest, I still have the option to go into the closest by independent grocer at the metro station or to the bigger grocer some 5-8 min away by bike.
When I need something quickly I just pop by the nearest grocer, they also have a different variety than the larger one further away. If I need to buy some more expensive items then I know it's worth it to bike further away.
It's a good balance, I have options and both grocers seem to be doing fine (the independent one is even expanding, new freezers/fridges, opened a whole new section for cheese, etc.).
Even though it's a suburb it's quite compact, and well planned. There are some 3000 apartments around the station (walking distance no longer than 10 min), while I live further out closer to the forest and lake (about 20 min walking) in a town house, there are many other town houses and some 5-10 min away from me there are some villas. Population of this suburb is around 13-14k people.