# About Kong# # BackgroundWhen we provide API or microservices, we usually use openresty nginx for traffic forwarding or adding some rules or functions, but as the number of services and references increase, complex network environment,Making maintenance difficult, not easy to scale, some features being duplicated in multiple services, we expect a tool to be centrally managed. ! [] (Images/kong_arch.png)#
Prior to entering the Kong-ui, the address of the Kong service needs to be configured by default for the first loginGo to the API menu and click on the + signFill in the relevant information as requiredBy doing so, you can use suchHttps://your.domain.com:20802/CommonOpenAPI/HMAC_SHA1EncodeRequest? Text=x-date%3a%20wed%2c%2001%20mar%202017%2005%3a05%3a24%20gmtsecr
Kong is the Mashape open source high performance High Availability API gateway and API Service Management layer. It is based on Openresty, implements API management, and provides AOP for plug-in implementation APIs. Kong manages m
This article is mainly for the Kong installation of the small note, the system environment for CentOS 6.7Please specify the source--xiaoeight the article reproduced
Introduced
Kong is an API gateway that forwards API traffic between the client and (mi
" Kong_admin_error_log=/dev/stderr "-E "kong_admin_listen=0.0.0.0:8001, 0.0.0.0:8444 SSL" -P 8000:8000 -P 8443:8443 -P 8001:8001 -P 8444:8444 Kong:0.13.1-centos
Use KongKong is running:$ curl -i http://localhost:8001/
Can get to a big create JSON data on behalf of the service started successfully two installation Kong-dashboardHttps://github.com/PGBI/
First, real-time monitoringThe user clicks on the service instance, the system displays the list of APIs under service instance-version,The user clicks on the following two icons for an API1, API request number monitoringHorizontal axis: Time, granularity is minuteLongitudinal axis: Number of requests for accessDisplay: Number of failures (red), number of successes (green), total (yellow), "Click Red, display the list of failed logs, click the failure
extensible open Source API Layer (also known as API Gateway or API middleware). Kong runs in front of any restful API and expands through plugins, providing additional functionality and services beyond the core platform.Orange: S
Install API Gateway Kong (https://getkong.org/) need to install Openresty and PostgreSQL First, here on my installation of the problems encountered and solutions to record, for your reference.
Openresty installation is very smooth, here simply paste:
Yum install-y pcre-devel openssl-devel gcc curl zlib zlib-devel
./configure--with-pcre-jit--with-ipv6--with-http
configuration You can use Regexmapper to provide conventions between Serviceid and routing. It uses regular expression-named groups to extract variables from Serviceid and inject them into the routing pattern.@Bean Public patternserviceroutemapper Serviceroutemapper () { returnnew Patternserviceroutemapper ("(? "${version}/${name}" );}This means that Serviceid "MYUSERS-V1" will be mapped to route "/v1/myusers/* *". Any regular expression is accepted, but all named groups must exist in Serv
first, the Gateway engineGateway Engine Address: http://10.110.20.191:8080/api-gateway-engine/second, service providersService Provider Address: http://10.110.20.191:8080/DemoWeb/, provided by Rest Services have a 2-second delay:
/demoweb/jsp/springjson/ajaxget.jsp, click to go in, see the function button is rest link
/demoweb/jsp/springjson/ajaxpos
Gateway Guide: HTTPS://HELP.ALIYUN.COM/DOCUMENT_DETAIL/29487.HTML?SPM=5176.DOC48835.6.550.23OQBLGateway Console: https://apigateway.console.aliyun.com/?spm=5176.doc42740.2.2.Q4z5ws#/cn-hangzhou/apis/listReference Link:https://help.aliyun.com/document_detail/48019.html?spm=5176.doc29487.6.580.NFBkpzFirst, the configuration center1. When configuring the API, divide all APIs into two categories, "Get Authoriza
Spring cloud builds the microservice architecture GateWay (API GateWay), springcloud
Preface
As mentioned in our previous blog, when service A needs to call service B, it only needs to obtain the registered instance of Service B from Eureka and then use Feign to call service B, ribbon is used to achieve load balancing. However, when we expose multiple services to
page is usually more detailed than the mobile version.
Different types of clients have different network performance. For example, mobile networks are generally slower and higher latency than non-mobile networks. Of course, a wide area network (WAN) is much slower than a local area network (LAN). This means that the network used by the mobile local client differs greatly from the performance characteristics of the server-side Web application's LAN. A server-side web app can send a large num
Http://www.scienjus.com/api-gateway-and-netflix-zuul/May 30, 2017Recently involved in the construction of the company API Gateway, technology selection is the Netflix Zuul, mainly talk about some of the experience and experience.This article is about how to build the gateway
Transferred from: http://www.scienjus.com/api-gateway-and-netflix-zuul/?hmsr=toutiao.ioutm_medium=toutiao.ioutm_ Source=toutiao.ioRecently involved in the construction of the company API Gateway, technology selection is the Netflix Zuul, mainly talk about some of the experience and experience.This article is about how
Micro-service Combat (ii): Using the API Gateway "Editor's word" the first article in this series describes the MicroServices architecture model. It discusses the advantages and disadvantages of using microservices, which are the ideal choice for complex applications, in addition to some complex microservices.When you decide to use the app as a set of microservices, you need to decide how the application cl
This is a creation in
Article, where the information may have evolved or changed.
"Editor's note" The first article in this series describes the MicroServices architecture model. It discusses the advantages and disadvantages of using microservices, which are the ideal choice for complex applications, in addition to some complex microservices.
When you decide to use the app as a set of microservices, you need to decide how the application client interacts with the microservices. In a monolithic
Original address: http://dockone.io/article/482"Editor's note" The first article in this series describes the MicroServices architecture model. It discusses the advantages and disadvantages of using microservices, which are the ideal choice for complex applications, in addition to some complex microservices.When you decide to use the app as a set of microservices, you need to decide how the application client interacts with the microservices. In a monolithic program, there is usually only one se
"Editor's note" The first article in this series describes the MicroServices architecture model. It discusses the advantages and disadvantages of using microservices, which are the ideal choice for complex applications, in addition to some complex microservices.When you decide to use the app as a set of microservices, you need to decide how the application client interacts with the microservices. In a monolithic program, there is usually only one set of redundant or load-balanced service deliver
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.