Eukaryotic cells have lots of subcellular compartments with all different functions. Lysosomes to compartmentalize all the degradative enzymes, so that things can be digested and renewed. Peroxisomes to separate glyconeogenesis from glycolysis for instance to prevent futile cycles. Prokaryotes lack these compartments. I wonder: how does it degrade and thus digest things without digesting itself? It excretes all its enzymes and then resorbs the broken down nutrients?