I m trying to understand Helix framework /Habitat project and I'm mapping the implementation with my current application. We got service layers(that calls web api or restful services) which get all business logic related data. Should we prefer adding such modules in foundation layer or create separate layer for this?
If it's used by a single feature, I would say it should be defined in that feature.
If it's used a by number of features, then a Foundation module is probably more appropriate.