This varies for everyone, but for me there is no value in distinguishing between “A2A” and “B2B”. IMO, there was some value long ago to treating these differently but not any longer. Both are simply “integration.” For any integration, one needs to consider the same characteristics. There is nothing inherently unique to one or the other. For example, if I shared the characteristics of a given integration (protocol, payload, security, etc.) would you be able to tell if it was A2A or B2B? And be certain about the conclusion? IMO, no. They each have the same things that need to be addressed in some way.
Can TN be used for internal applications? Certainly. Similar to what @jahntech.cj shared, I also used TN in the past for connecting internal systems. And of course internal with external systems. We used it as a generalized “document broker” and even added a simple form of “pub/sub” to it so that a document from one app could readily be “fanned-out” to multiple targets if needed.
One guideline to consider: does the component (TN, ATS, IS, API GW, etc.) add value of some sort. If not, don’t use it.
TN is awesome for doc exchange. I would never attempt EDI (or cXML, or the many other document-oriented solutions) without TN. For other things, as long as the main focus is a document of some sort, it is compelling. For other types of interactions, it is less so. Consider too that not all payloads are “documents”. TN as a go-between for the typical request/response call over HTTP is not a good fit.
For the “run everything through API gateway” I would offer a qualified “no.” In my current situation, we use API GW only for custom APIs that we define/control. We do not put it in front of out-of-the-box APIs of applications unless there is a specific and compelling need/value in doing so. API GW in front of TN may be useful to some degree for account management and security. Particularly if you create your own TN entry-point service (as you should) instead of having callers access wm.tn:receive directly.
#Managed-File-Transfer#API-Management#webMethods#Integration-Server-and-ESB#B2B-Integration#API-Gateway