In most cases, both play a role. The key is clearly defining what lives where, so your systems work together instead of competing.