It's very possible, though not at all trivial to figure out. I spent a long time doing exactly what you're talking about. But eventually I came up with a small number of rules that allowed me to avoid lockups. My Gleba base has been stable and productive for 10+ game hours now.
I don't use logistics for much, but the "blue inserter filtered for spoilage aimed at a purple chest" is the real hero. Every building that holds anything spoilable needs one.
The few places where I use blue chests, I make sure "trash unrequested" is checked. Likewise, I rarely use provider chests, but where I do, I always go with purple, not red. Probably not as necessary as long as I'm requesting spoilage to be burned quickly enough. But I've gotten into the habit elsewhere, too.
And every belt end needs it. Mostly I try to loop belts back to their start, but there are several places where they have dead ends, and spoilage MUST be removed there. Add in a few places in the middle of looped belts, and you're pretty much good to go.
The few places where I use blue chests, I make sure "trash unrequested" is checked. Likewise, I rarely use provider chests, but where I do, I always go with purple, not red. Probably not as necessary as long as I'm requesting spoilage to be burned quickly enough. But I've gotten into the habit elsewhere, too.
And every belt end needs it. Mostly I try to loop belts back to their start, but there are several places where they have dead ends, and spoilage MUST be removed there. Add in a few places in the middle of looped belts, and you're pretty much good to go.