Tag:Service provider

  • Accelerate laravel with swoole

    Time:2021-12-21

    Swoole is a production level asynchronous programming framework for PHP. It is a PHP extension written in pure C language. It enables PHP developers to write high-performance and scalable concurrent TCP, UDP, UNIX socket, HTTP and websocket services in PHP without too much non blocking I / O programming and Linux kernel knowledge. You can […]

  • SPI principle

    Time:2021-12-19

    JDK version is 1.8 SPI SPI, the full name of service provider interface, is a set of APIs provided by java to be implemented or extended by third parties. It can be used to enable framework extension and replace components. Java SPI is actually a dynamic loading mechanism realized by the combination of “interface based […]

  • Distributed Dubbo (1) – load balancing strategy

    Time:2021-12-13

    Dubbo source code analysis – loadbalance of cluster fault tolerance 1. Introduction Loadbalance means load balancing in Chinese. It is responsible for “sharing” network requests or other forms of load to different machines. Avoid excessive pressure on some servers in the cluster while others are idle. Through load balancing, each server can obtain the load […]

  • Use swoole to speed up your laravel app

    Time:2021-12-4

    Swoole  Is a production level asynchronous programming framework developed for PHP. It is a pure C development extension. It allows PHP developers to write high-performance and scalable concurrent TCP, UDP, UNIX socket, HTTP and websocket services in PHP without having too much non blocking I / O programming and low-level Linux kernel knowledge. You can […]

  • Selection of distributed RPC service invocation framework: using Dubbo to realize distributed service invocation

    Time:2021-12-1

    Dubbo concept Dubbo is a high-performance, lightweight RPC distributed service framework Three core competencies are provided: Interface Oriented Remote Method Invocation(@Reference) Intelligent fault tolerance load balancing Dubbo features:The layered architecture can decouple the layers Dubbo’s role: Provider:Provider Consumer:Consumer Dubbo provides a very simple service model, either the provider provides services or the consumer consumes services […]

  • Distributed RPC architecture: Dubbo application architecture analysis! Load balancing with Dubbo

    Time:2021-11-30

    Dubbo application architecture (init) in Dubbo containerContainerMedium startstartProvider on containerProvider (init) providerProviderregisterregisterService to registryRegistry (init) consumerConsumerFrom registryRegistrysubscribesubscribeservice (async) registryRegistryTo consumersConsumernoticenotify (sync) consumerConsumercallinvokeService providerProvider (async) monitoring centerMonitorMonitoring service consumersConsumerAnd service providersProviderUsage, statisticscountNumber of service requests Dubbo load balancing During cluster load balancing, Dubbo provides a variety of load balancing strategies,The default is random call,You can also […]

  • 2.5 use of docker machine on alicloud

    Time:2021-11-25

    Officially supported cloud service providers https://docs.docker.com/machine/drivers/ Cloud service providers supported by third-party plug-ins https://github.com/docker/docker.github.io/blob/master/machine/AVAILABLE_DRIVER_PLUGINS.md Use on alicloud Installation documentationhttps://github.com/AliyunContainerService/docker-machine-driver-aliyunecs 1. View all docker machine drivers ls -al /usr/local/bin/docker-machine-driver* 2. Download docker machine driver https://docker-machine-drivers.oss-cn-beijing.aliyuncs.com/docker-machine-driver-aliyunecs_darwin-amd64.tgz mv /path/to/docker-machine-driver-aliyunecs.darwin-amd64 /usr/local/bin mv /usr/local/bin/docker-machine-driver-aliyunecs.darwin-amd64 /usr/local/bin/docker-machine-driver-aliyunecs 3. View the available commands of alicloud driver docker-machine create -d aliyunecs –help 4. Create container docker-machine […]

  • In depth analysis of laravel service container

    Time:2021-11-24

    This article was first published inIn depth analysis of laravel service container, reprint, please indicate the source. Like friends, don’t be stingy with your approval, thank you. BeforeDeep mining laravel life cycleIn this article, we have to explore how laravel receives HTTP requests, how to generate responses and finally present them to users. This chapter […]

  • Some thoughts on the division of micro services

    Time:2021-11-18

    Our company has implemented the micro service architecture for many years, and I have been in contact with the development for some time. Just recently, I took the time to turn over the book “micro service design” and had the idea of writing this article. Although the description in the article is not very universal, […]

  • Laravel service provider Guide

    Time:2021-11-15

    This is a translated article, which was first published inLaravel service provider Guide, reprint, please indicate the source. If you’ve used the laravel framework, you can’t have never heard of service containers and service providers. In fact, they are the core of lavavel framework. They complete the arduous task of service startup in larvel application. […]

  • Deeply analyze the implementation principle of laravel service provider

    Time:2021-11-9

    This article was first published inDeeply analyze the implementation principle of laravel service provider, reprint, please indicate the source. Today, we will learn another core content of the laravel framework, “service provider”. The function of the service provider is to complete the boot start of the laravel application, or to “register” various services in laravel […]

  • Wechat small and micro merchants for personal collection

    Time:2021-10-29

    Introduction to wechat payment small and micro merchants Wechat payment merchants apply for opening to offline small and micro merchants, which can be opened by individuals without a business license.Qualified wechat payment service providers can initiate access applications for small and micro merchants.Click to open a small and micro merchant 1、 Introduction to the capabilities […]