dengjia 68b6c59c4f mimic-real-msg with fake output 1 hónapja
..
src 68b6c59c4f mimic-real-msg with fake output 1 hónapja
README-en.md 68b6c59c4f mimic-real-msg with fake output 1 hónapja
README.md 68b6c59c4f mimic-real-msg with fake output 1 hónapja
publish.yaml 68b6c59c4f mimic-real-msg with fake output 1 hónapja

README-en.md

rabbitmq-trigger-fc-event-springboot help documentation

Preliminary preparation

Permission preparation

Using this item, verify that your operational account has the following product permissions/policies:

Service/Business Functional Computing
Permissions/Policies AliyunFCFullAccess
AliyunAMQPFullAccess

Resource preparation

  • For an available RabbitMQ instance, please refer to the official document of Message Queue for RabbitMQ create resources.

  • Create the Vhost and Queue in the details of rabbitmq instance.

Code & Preview

  • :smiley_cat:source code
  • In order to successfully deploy this sample code, you need to provide the following parameters during the deployment process:
    • Region: You need to configure the region where your Function Compute service needs to be deployed through this parameter. The default value is cn-qingdao (Qingdao).
    • The geographic options available to you are:
      • cn-beijing (Beijing)
      • cn-hangzhou (Hangzhou)
      • cn-shanghai (Shanghai)
      • cn-qingdao (Qingdao)
      • cn-zhangjiakou (Zhangjiakou)
      • cn-huhehaote (Hohhot)
      • cn-shenzhen (Shenzhen)
      • cn-chengdu (Chengdu)
      • cn-hongkong (Hongkong)
      • ap-southeast-1 (Singapore)
      • ap-southeast-2 (Sydney)
      • ap-southeast-3 (Kuala Lumpur)
      • ap-southeast-5 (Jakarta)
      • ap-northeast-1 (Tokyo)
      • eu-central-1 (Frankfurt)
      • eu-west-1 (London)
      • us-west-1 (Silicon Valley)
      • us-east-1 (Virginia)
      • ap-south-1 (Mumbai)
    • Service name: You need to name your Function Compute service. The service name can only contain letters, numbers, underscores and dashes. Cannot start with a number or a dash. The length is between 1-128, the default value is rabbitmq-trigger-quick-start.
    • Function name: You need to name your function calculation function. The function name can only contain letters, numbers, underscores and dashes. Cannot start with a number or a dash. The length is between 1-64. The default is rabbitmq-trigger-event-function-springboot.
    • Instance ID: You need to specify the instance ID of the RabbitMQ. Please refer to here for more details.
    • Virtual Host Name: You need to specify the virtual host name of the RabbitMQ. Please refer to here for more details.
    • Queue Name: You need to specify the queue name of the RabbitMQ. Please refer to here for more details.

Deployment & Experience

  • Deploy via Serverless Devs Cli:

    • Install Serverless Devs Cli Developer Tools, and perform Authorization Information Configuration;
    • Initialize the project: s init rabbitmq-trigger-fc-event-springboot -d rabbitmq-trigger-fc-event-springboot
    • Fill in the parameters described in the above modules
    • Enter the project and deploy the project: cd rabbitmq-trigger-fc-event-springboot && s deploy -y
  • local debugging

    • Enter the application project project and execute the following command: s invoke --event-file event-example/rabbitmq-eventbridge-fc-sample.json.
    • You can view the logs and results after the simulated event triggers the function.
  • End-to-end testing

    • Send messages to the RabbitMQ instance to trigger the invocation of the function. Please refer to here for more details.

application details

This application is only used for learning and reference. You can carry out secondary development and improvement based on this project to realize your own business logic.

Developer Community

If you have feedback about bugs or future expectations, you can give feedback and exchange in Serverless Devs repo Issues. If you want to join our discussion group or keep up to date with the latest developments in FC components, you can do so through the following channels:

| | | | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | | WeChat Official Account: `serverless` | WeChat Assistant: `xiaojiangwh` | DingTalk Group:`33947367` |