The distinction between these two is not always clear, but I have found this a useful schema for thinking about system architecture that I’ve also heard discussed in other contexts as well.