SlideShare a Scribd company logo
1 of 15
5 Ways to Use Node in the 
Network
1. API Metering 
Also called API rate limiting, metering is the process of managing access to APIs, 
and only allowing a given number of API calls per specified time period.
API METERING 
X-API-Key: 
12345 
node.js 
• Extract API key from HTTP header 
• Lookup (service or database) current usage and 
quota 
• Determine whether call allowed or reject with 
appropriate message 
MORE EFFICIENT 
IMPROVES 
PERFORMANCE 
LESS DISRUPTION 
WHEN CHANGED 
LineRate.com 3
2. Y-axis scaling 
Y-axis scaling is a sharding-based routing pattern that uses some variable within 
each request - either in the URI or in the HTTP headers - to determine which 
service or application instance a request should be forwarded to.
Y-AXIS SCALING 
Service A 
Service B 
Service C 
/login/ 
/checkout/ 
/search/ 
node.js 
• Evaluate URI 
• Steer to the appropriate service based on 
function 
• Can be extended to pull service name from 
database for real-time updates 
MORE EFFICIENT 
IMPROVES 
PERFORMANCE 
BETTER 
ABSTRACTION 
LineRate.com 5
3. Data scrubbing 
Data scrubbing is a security technique that ensures sensitive or confidential data 
is not returned to the user.
DATA SCRUBBING 
Service A 
Service B 
Service C 
{username: “Joe Bob”, 
account: “123-45-678”} 
{username: “Joe Bob”, 
account: “xxx-xx-678”} 
node.js 
• Intercept response 
• If specified pattern / data is discovered, remove 
or scrub to obfuscate 
• Return clean data to user 
COMPLIANCE 
SECURITY 
LESS DISRUPTION 
WHEN CHANGED 
LineRate.com 7
4. Exception Handling 
Exception handling allows the app proxy to “retry” requests to app instances that 
fail. This is particularly useful in cases where 5xx and 4xxx error messages are 
returned and indicate a problem with the web server or app instance.
EXCEPTION HANDLING 
GET /original-request/ 
(RETRY) GET /original-request/ 
node.js 
• Intercept response 
• If HTTP response matches specified status codes 
retry the request and mark the original as 
unavailable 
• May perform additional logging or actions as 
indicated by the script 
IMPROVE 
UPTIME 
FASTER 
NOTIFICATION 
BETTER USER 
EXPERIENCE 
LineRate.com 9
5. Content Sharding 
Similar to Y-axis scaling, content sharding allows for finer grained distribution of 
requests based on content type such as images, documents, static text or 
database-backed content.
CONTENT SHARDING 
Images 
Static text 
Scripts 
node.js 
• Evaluate URI and/or Content-Type HTTP header 
• Steer to the appropriate service based on content 
type 
• Can be extended to pull service name from 
database for real-time updates 
IMPROVE 
SCALABILITY 
IMPROVED 
PERFORMANCE 
BETTER USER 
EXPERIENCE 
LineRate.com 11
How do I get node in the network?
13 
With a programmable proxy like LineRate 
Data Path 
Data path 
programmability enables 
custom application data 
and traffic handling logic 
Node.js 
LINE RATE 
NODE.JS 
• Deployed in the data path between 
an end user and the application 
• Fluent in SSL and HTTP 
• Can execute custom logic using 
node.js (including modules from 
NPM)
Where can I get one? 
linerate.f5.com
15 
https://linerate.f5.com/try

More Related Content

What's hot

2010 code camp rest for the rest of us
2010 code camp   rest for the rest of us2010 code camp   rest for the rest of us
2010 code camp rest for the rest of us
Ken Yagen
 
Why Domain-Driven Design and Reactive Programming?
Why Domain-Driven Design and Reactive Programming?Why Domain-Driven Design and Reactive Programming?
Why Domain-Driven Design and Reactive Programming?
VMware Tanzu
 

What's hot (20)

APIdays Helsinki 2019 - The Future of the Dynamic Application Server, NGINX U...
APIdays Helsinki 2019 - The Future of the Dynamic Application Server, NGINX U...APIdays Helsinki 2019 - The Future of the Dynamic Application Server, NGINX U...
APIdays Helsinki 2019 - The Future of the Dynamic Application Server, NGINX U...
 
Api gateway
Api gatewayApi gateway
Api gateway
 
Achieving Microservices Maturity
Achieving Microservices MaturityAchieving Microservices Maturity
Achieving Microservices Maturity
 
Building a Data Subscription Service with Kafka Connect (Danica Fine & Ajay V...
Building a Data Subscription Service with Kafka Connect (Danica Fine & Ajay V...Building a Data Subscription Service with Kafka Connect (Danica Fine & Ajay V...
Building a Data Subscription Service with Kafka Connect (Danica Fine & Ajay V...
 
2010 code camp rest for the rest of us
2010 code camp   rest for the rest of us2010 code camp   rest for the rest of us
2010 code camp rest for the rest of us
 
apidays LIVE Helsinki & North - Serverless Bots in a Blink by Rachel White, D...
apidays LIVE Helsinki & North - Serverless Bots in a Blink by Rachel White, D...apidays LIVE Helsinki & North - Serverless Bots in a Blink by Rachel White, D...
apidays LIVE Helsinki & North - Serverless Bots in a Blink by Rachel White, D...
 
How do async ap is survive in a rest world
How do async ap is survive in a rest world How do async ap is survive in a rest world
How do async ap is survive in a rest world
 
Overview of API Management Architectures
Overview of API Management ArchitecturesOverview of API Management Architectures
Overview of API Management Architectures
 
Lessons Learned from Building Enterprise APIs (Gustaf Nyman)
Lessons Learned from Building Enterprise APIs (Gustaf Nyman)Lessons Learned from Building Enterprise APIs (Gustaf Nyman)
Lessons Learned from Building Enterprise APIs (Gustaf Nyman)
 
API workshop by AWS and 3scale
API workshop by AWS and 3scaleAPI workshop by AWS and 3scale
API workshop by AWS and 3scale
 
Why Domain-Driven Design and Reactive Programming?
Why Domain-Driven Design and Reactive Programming?Why Domain-Driven Design and Reactive Programming?
Why Domain-Driven Design and Reactive Programming?
 
Three layer API Design Architecture
Three layer API Design ArchitectureThree layer API Design Architecture
Three layer API Design Architecture
 
What's New with Anypoint Platform? Unified Platform Management
What's New with Anypoint Platform? Unified Platform ManagementWhat's New with Anypoint Platform? Unified Platform Management
What's New with Anypoint Platform? Unified Platform Management
 
API Management For Building Software Applications Powerpoint Presentation Slides
API Management For Building Software Applications Powerpoint Presentation SlidesAPI Management For Building Software Applications Powerpoint Presentation Slides
API Management For Building Software Applications Powerpoint Presentation Slides
 
Event-Driven Architecture (EDA)
Event-Driven Architecture (EDA)Event-Driven Architecture (EDA)
Event-Driven Architecture (EDA)
 
The Magic Behind Faster API Development, Testing and Delivery with API Virtua...
The Magic Behind Faster API Development, Testing and Delivery with API Virtua...The Magic Behind Faster API Development, Testing and Delivery with API Virtua...
The Magic Behind Faster API Development, Testing and Delivery with API Virtua...
 
Comparing Legacy and Modern e-commerce solutions
Comparing Legacy and Modern e-commerce solutionsComparing Legacy and Modern e-commerce solutions
Comparing Legacy and Modern e-commerce solutions
 
I Love APIs 2015: Building Predictive Apps with Lamda and MicroServices
I Love APIs 2015: Building Predictive Apps with Lamda and MicroServices I Love APIs 2015: Building Predictive Apps with Lamda and MicroServices
I Love APIs 2015: Building Predictive Apps with Lamda and MicroServices
 
Comcast Codebig: An API Platform & Program [my speech at the AADI conference]
Comcast Codebig: An API Platform & Program [my speech at the AADI conference]Comcast Codebig: An API Platform & Program [my speech at the AADI conference]
Comcast Codebig: An API Platform & Program [my speech at the AADI conference]
 
Best practices for multi saa s integrations
Best practices for multi saa s integrationsBest practices for multi saa s integrations
Best practices for multi saa s integrations
 

Similar to 5 ways to use node.js in the network

REST API Recommendations
REST API RecommendationsREST API Recommendations
REST API Recommendations
Jeelani Shaik
 

Similar to 5 ways to use node.js in the network (20)

5 Ways to use Node in the Network
5 Ways to use Node in the Network5 Ways to use Node in the Network
5 Ways to use Node in the Network
 
REST API Recommendations
REST API RecommendationsREST API Recommendations
REST API Recommendations
 
Code-Camp-Rest-Principles
Code-Camp-Rest-PrinciplesCode-Camp-Rest-Principles
Code-Camp-Rest-Principles
 
Data as a_service_1.1_anup
Data as a_service_1.1_anupData as a_service_1.1_anup
Data as a_service_1.1_anup
 
Business Applications Integration In The Cloud
Business Applications Integration In The CloudBusiness Applications Integration In The Cloud
Business Applications Integration In The Cloud
 
Rest API Automation with REST Assured
Rest API Automation with REST AssuredRest API Automation with REST Assured
Rest API Automation with REST Assured
 
Service Discovery in MicroServices
Service Discovery in MicroServicesService Discovery in MicroServices
Service Discovery in MicroServices
 
APITalkMeetupSharable
APITalkMeetupSharableAPITalkMeetupSharable
APITalkMeetupSharable
 
Flink Forward San Francisco 2018: Dave Torok & Sameer Wadkar - "Embedding Fl...
Flink Forward San Francisco 2018:  Dave Torok & Sameer Wadkar - "Embedding Fl...Flink Forward San Francisco 2018:  Dave Torok & Sameer Wadkar - "Embedding Fl...
Flink Forward San Francisco 2018: Dave Torok & Sameer Wadkar - "Embedding Fl...
 
Introduction to AWS X-Ray
Introduction to AWS X-RayIntroduction to AWS X-Ray
Introduction to AWS X-Ray
 
Grand tour of Azure API Management.pdf
Grand tour of Azure API Management.pdfGrand tour of Azure API Management.pdf
Grand tour of Azure API Management.pdf
 
Integration on Force.com Platform
Integration on Force.com PlatformIntegration on Force.com Platform
Integration on Force.com Platform
 
Api security-testing
Api security-testingApi security-testing
Api security-testing
 
Recipes for API Ninjas
Recipes for API NinjasRecipes for API Ninjas
Recipes for API Ninjas
 
Rest WebAPI with OData
Rest WebAPI with ODataRest WebAPI with OData
Rest WebAPI with OData
 
Being Well Architected in the Cloud (Updated)
Being Well Architected in the Cloud (Updated)Being Well Architected in the Cloud (Updated)
Being Well Architected in the Cloud (Updated)
 
Being Well-Architected in the Cloud
Being Well-Architected in the CloudBeing Well-Architected in the Cloud
Being Well-Architected in the Cloud
 
Operating your Production API
Operating your Production APIOperating your Production API
Operating your Production API
 
Angular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP ServicesAngular - Chapter 7 - HTTP Services
Angular - Chapter 7 - HTTP Services
 
SFDC Inbound Integrations
SFDC Inbound IntegrationsSFDC Inbound Integrations
SFDC Inbound Integrations
 

More from Lori MacVittie

Web 2 And Application Delivery Public
Web 2 And Application Delivery PublicWeb 2 And Application Delivery Public
Web 2 And Application Delivery Public
Lori MacVittie
 

More from Lori MacVittie (15)

So you think you can scale containers
So you think you can scale containersSo you think you can scale containers
So you think you can scale containers
 
State of Application Delivery 2017 - Cloud Insights
State of Application Delivery 2017 - Cloud Insights State of Application Delivery 2017 - Cloud Insights
State of Application Delivery 2017 - Cloud Insights
 
State of Application Delivery 2017 - DevOps Insights
State of Application Delivery 2017 - DevOps Insights State of Application Delivery 2017 - DevOps Insights
State of Application Delivery 2017 - DevOps Insights
 
Devops is all greek
Devops is all greekDevops is all greek
Devops is all greek
 
Beyond POLB (Plain Old Load Balancing)
Beyond POLB (Plain Old Load Balancing) Beyond POLB (Plain Old Load Balancing)
Beyond POLB (Plain Old Load Balancing)
 
Pushing the DevOps envelope into the network with microservices
Pushing the DevOps envelope into the network with microservicesPushing the DevOps envelope into the network with microservices
Pushing the DevOps envelope into the network with microservices
 
Architectural Patterns for Scaling Microservices and APIs - GlueCon 2015
Architectural Patterns for Scaling Microservices and APIs - GlueCon 2015Architectural Patterns for Scaling Microservices and APIs - GlueCon 2015
Architectural Patterns for Scaling Microservices and APIs - GlueCon 2015
 
The Internet of Security Things (A Story about Change)
The Internet of Security Things (A Story about Change) The Internet of Security Things (A Story about Change)
The Internet of Security Things (A Story about Change)
 
HTTP/2 Changes Everything
HTTP/2 Changes EverythingHTTP/2 Changes Everything
HTTP/2 Changes Everything
 
What are Software Defined Application Services
What are Software Defined Application ServicesWhat are Software Defined Application Services
What are Software Defined Application Services
 
Operationalize all the network things
Operationalize all the network thingsOperationalize all the network things
Operationalize all the network things
 
Programming proxies to do what we need so we don't have to talk to the networ...
Programming proxies to do what we need so we don't have to talk to the networ...Programming proxies to do what we need so we don't have to talk to the networ...
Programming proxies to do what we need so we don't have to talk to the networ...
 
Dynamic Infrastructure
Dynamic InfrastructureDynamic Infrastructure
Dynamic Infrastructure
 
Nine Ways to Use Network-Side Scripting
Nine Ways to Use Network-Side ScriptingNine Ways to Use Network-Side Scripting
Nine Ways to Use Network-Side Scripting
 
Web 2 And Application Delivery Public
Web 2 And Application Delivery PublicWeb 2 And Application Delivery Public
Web 2 And Application Delivery Public
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 

5 ways to use node.js in the network

  • 1. 5 Ways to Use Node in the Network
  • 2. 1. API Metering Also called API rate limiting, metering is the process of managing access to APIs, and only allowing a given number of API calls per specified time period.
  • 3. API METERING X-API-Key: 12345 node.js • Extract API key from HTTP header • Lookup (service or database) current usage and quota • Determine whether call allowed or reject with appropriate message MORE EFFICIENT IMPROVES PERFORMANCE LESS DISRUPTION WHEN CHANGED LineRate.com 3
  • 4. 2. Y-axis scaling Y-axis scaling is a sharding-based routing pattern that uses some variable within each request - either in the URI or in the HTTP headers - to determine which service or application instance a request should be forwarded to.
  • 5. Y-AXIS SCALING Service A Service B Service C /login/ /checkout/ /search/ node.js • Evaluate URI • Steer to the appropriate service based on function • Can be extended to pull service name from database for real-time updates MORE EFFICIENT IMPROVES PERFORMANCE BETTER ABSTRACTION LineRate.com 5
  • 6. 3. Data scrubbing Data scrubbing is a security technique that ensures sensitive or confidential data is not returned to the user.
  • 7. DATA SCRUBBING Service A Service B Service C {username: “Joe Bob”, account: “123-45-678”} {username: “Joe Bob”, account: “xxx-xx-678”} node.js • Intercept response • If specified pattern / data is discovered, remove or scrub to obfuscate • Return clean data to user COMPLIANCE SECURITY LESS DISRUPTION WHEN CHANGED LineRate.com 7
  • 8. 4. Exception Handling Exception handling allows the app proxy to “retry” requests to app instances that fail. This is particularly useful in cases where 5xx and 4xxx error messages are returned and indicate a problem with the web server or app instance.
  • 9. EXCEPTION HANDLING GET /original-request/ (RETRY) GET /original-request/ node.js • Intercept response • If HTTP response matches specified status codes retry the request and mark the original as unavailable • May perform additional logging or actions as indicated by the script IMPROVE UPTIME FASTER NOTIFICATION BETTER USER EXPERIENCE LineRate.com 9
  • 10. 5. Content Sharding Similar to Y-axis scaling, content sharding allows for finer grained distribution of requests based on content type such as images, documents, static text or database-backed content.
  • 11. CONTENT SHARDING Images Static text Scripts node.js • Evaluate URI and/or Content-Type HTTP header • Steer to the appropriate service based on content type • Can be extended to pull service name from database for real-time updates IMPROVE SCALABILITY IMPROVED PERFORMANCE BETTER USER EXPERIENCE LineRate.com 11
  • 12. How do I get node in the network?
  • 13. 13 With a programmable proxy like LineRate Data Path Data path programmability enables custom application data and traffic handling logic Node.js LINE RATE NODE.JS • Deployed in the data path between an end user and the application • Fluent in SSL and HTTP • Can execute custom logic using node.js (including modules from NPM)
  • 14. Where can I get one? linerate.f5.com