![]() Network performance is different for different types of clients. For example, the desktop browser version of a product details page desktop is typically more elaborate then the mobile version. For example, as described above, a client needing the details for a product needs to fetch data from numerous services.ĭifferent clients need different data. Microservices typically provide fine-grained APIs, which means that clients need to interact with multiple services. The granularity of APIs provided by microservices is often different than what a client needs. How do the clients of a Microservices-based application access the individual services? Forces Inventory service - product availabilityĬonsequently, the code that displays the product details needs to fetch information from all of these services.Order service - purchase history for product.Product Info Service - basic information about the product such as title, author.Since the online store uses the Microservice architecture pattern the product details data is spread over multiple services. Other items bought by customers who bought this book.Other items that are frequently bought with this book.Basic information about the book such as title, author, price, etc.In addition, the online store must expose product details via a REST API for use by 3rd party applications.Ī product details UI can display a lot of information about a product.įor example, the details page for POJOs in Action displays: Native Android and iPhone clients - these clients interact with the server via REST APIs.HTML5/JavaScript-based UI for desktop and mobile browsers - HTML is generated by a server-side web application.You need to develop multiple versions of the product details user interface: ![]() ![]() Let’s imagine you are building an online store that uses the Microservice architecture pattern and that you are implementing the product details page. ![]() Pattern: API Gateway / Backends for Frontends Context ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |