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

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
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
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 

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