18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

76 <strong>B2B</strong> <strong>Integration</strong> — A <strong>Practical</strong> <strong>Guide</strong> <strong>to</strong> <strong>Collaborative</strong> E-<strong>commerce</strong><br />

Application A Application B<br />

API Calls I I API Calls<br />

Data Access Layer<br />

Data Source Data Source<br />

Figure 3.21. — A typical API call<br />

underlying business logic and data access, providing a higher degree of<br />

security and data integrity.<br />

APIs provide a high-level programming paradigm, where an<br />

application or a program does not execute its own methods or functions<br />

itself but makes some other applications or programs <strong>to</strong> do it. This way<br />

the actual implementation of the method or function is always delegated<br />

<strong>to</strong> the program publishing the API and not the calling programs (see<br />

Figure 3.21). If there is any change in the business logic, which requires<br />

changing the implementation of the method, the developers have <strong>to</strong><br />

change the code at only one place, i.e., in the program providing the<br />

implementation of the method — as long as the incoming parameters<br />

and output do not change.<br />

For instance, applications and programs developed on any operating<br />

system use APIs provided by the underlying operating system. This way<br />

they are able <strong>to</strong> delegate all the dirty work of disk Input/Output (I/O),<br />

memory allocation, painting graphics on the moni<strong>to</strong>r, etc., <strong>to</strong> the operating

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!