Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Echo Quick Start Guide

You're reading from   Echo Quick Start Guide Build lightweight and high-performance web apps with Echo

Arrow left icon
Product type Paperback
Published in May 2018
Publisher Packt
ISBN-13 9781789139433
Length 136 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Ben Huson Ben Huson
Author Profile Icon Ben Huson
Ben Huson
Arrow right icon
View More author details
Toc

In action

When implementing routing for your API or web application within the Echo Framework, it is important to keep routes logically separated with grouping, used for functional differences in the application, and/or versioning purposes. It is important to remember how the router implements the mapping, and in Echo’s case since Echo uses a Radix Tree, the more similar prefixes you use within your API definition, the better the routing performance will be for your application. This is important to note in your API URL design because it will have important performance ramifications.

One item that has been left out of our routing discussion so far is how Echo handles URL parameters. You use a URL parameter when you need to have a variable length argument for your API located within the target path itself. This is very useful in API design, as you may want to reference a...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image