The interconnected relationships between organisms that consume and are consumed by other organisms in an ecosystem.