Layer7 API Management

  • 1.  Design decision on Gateway API orchestrations and transformations

    Posted Jan 10, 2017 01:22 PM

    Hello

    I am not sure if this is a right place to ask this question.

    For one of our client, architect team have proposed a design as shown below for APIs and its internal services.

    1. API Consumer (Req) -> Layer7 (Req)-> (Req) Microservices -> (Req) NoSQLdb (Resp) -> Microservices (Resp) -> Layer7 (Response)-> Consumer
    2. After responding to Layer7, Microservices will continue further processing and then publishes the message to Amazon Kinesis for down stream applications processing.

    So basically in this design we are acknowleding the source system once we have success response of NoSQLdb  insertion and closing the transaction.

    Role of each component:
    Layer7:
    1. Security Layer (Authenticate and Authorization.
    2. Routing.
    3. API consumer onboarding.
    Microservices:
    1. Orchestration (NoSQLdb, KInesis)
    2. Message validations
    3. Transformations


    Reasons to have orchestration and message validations in microservices is:
    1. Scalable 
    2. Avoid heavy orchestrations in Layer7 as it wont scale.
    3. Avoid transformations in Layer7 as complex transformations limitation in the tool.

    Now our client is proposing to have message validations and orchestrations on Layer7 and microservices to have only routing funtionality.

    So we have some questions on this:
    1. We know Layer7 can support orchestrations and Transformations, but we are in an understanding that Gateways shouldn't perform these activities (only lightweight orchestrations or routing).
    2. Which is a best place to implement? If Layer7, can someone give me the reasons for this?

    Regards
    Kareem



  • 2.  Re: Design decision on Gateway API orchestrations and transformations

    Posted Mar 01, 2018 08:36 PM

    Hello, I am using the Gateway API and I also have similar scenarios. I have a series of services that are exposed in the ESB; however, I would like to know if I can perform orchestrations in the API Gateway and "skip" the bus, but up to what level they could be, simple orchestrations 2, 3.4 providers per API.



  • 3.  Re: Design decision on Gateway API orchestrations and transformations

    Posted Mar 01, 2018 10:51 PM

    Hi Kareem,

     

    What kind of transformations are you looking at? I think if you could share some samples of transformation and validation required that would help us better advice you.

     

    Ultimately, I believe you have to test it out to see what kind of performance you are getting with the various assertions in place and if that performance is acceptable to your client.

     

    In my case, we are doing JSON validation via the JSON schema validation, and some transformation (JSON -> JSON) or (JSON -> XML), really depends on the complexity that you required.

     

    Regards,

    Shawn