My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Thursday, April 2, 2020

Trace the API call in Kibana (https://www.elastic.co/kibana)


  1.  Once you log in to Kibana, there are 5 important sections:
  2. Filter: Enter your API URI  ex:  /rest/getstock
  3. Filter by Time: Filter search to a particular time or date range
  4. Filter by Time: Filter search to a particular time or date range
  5. Add Filter
  6. Different API Fields are useful for searching purposes
  7.  Usecase 1: Search by http_status code
    • Step 1: Select the correct time on the top right.
    • Step  2: Left pan select the "Http_status_code" and press "Search Icon". It will automatically be added to the Add Filter   

  8. Use case 2: Search by API_KE
  9. Step 1: Select the correct time on the top right.
  10. Step 2: Left pan select the "api_key" and press "Search Icon". It will automatically be added to the Add Filter
  11. Use case 3: After setting all the filters needed, you want to check more details of the API: 
  12. Use Case 4: Want to show a visual representation of the error code. Let select http_status_code from the left pan and press "Visualize"


Saturday, January 25, 2020

API Proxy versus API Gateways

  • API Proxy

A proxy, in its most basic form, is an intermediary acting on behalf of something else. Similar to the legal concept of a proxy, an API Proxy acts on behalf of the API instead of an individual. In more technical terms, an API Proxy decouples the frontend of the API from the backend services and filters all incoming and outgoing traffic. The decoupling of front-end and back-end services allows for changes to be made to backend services without disrupting the production API. The filtering of incoming and outgoing traffic allows for monitoring, basic forms of security, request routing, and protocol translation.

  • Important Note

It is important to note that API Proxies require an existing API while some API Gateways can assist in building a new API.

  • API Gateway


API Gateways function in a similar way but have a much more robust set of features. Gateways perform the same functions as API Proxies, decoupling the frontend and backend of the API, monitoring, basic security, request routing, and protocol translation, but can also provide:


  • Advanced Security
  • Composition
  • Custom API
  • Load Balancing
  • Caching
  • Request Shaping and Management
  • Static Response Handling
  • Throttling



  • API Proxy versus API Gateway?

The use case for an API Proxy versus an API Gateway depends on what kinds of capabilities you require and where you are in the API Lifecycle. If you already have an existing API that doesn’t require the advanced capabilities that an API Gateway can offer than an API Proxy would be a recommended route. You can save valuable engineering bandwidth because proxies are much easier to maintain and you won’t suffer any negligible performance loss. If you need specific capabilities that a proxy doesn’t offer you could also develop an in-house layer to accommodate your use case. If you are earlier in the API lifecycle or need the extra features that an API Gateway can provide, then investing in one would pay dividends

API Proxy versus API Gateway


  • Notable API Gateways


https://www.axway.com/en/products/api-management/gateway
https://konghq.com/solutions/gateway/
https://aws.amazon.com/api-gateway/
https://azure.microsoft.com/en-us/services/api-management/
https://apigee.com/api-management/
https://github.com/Netflix/zuul
https://github.com/TykTechnologies/tyk