当前位置:网站首页>【愚公系列】2022年06月 .NET架构班 081-分布式中间件 ScheduleMaster的API自定义任务
【愚公系列】2022年06月 .NET架构班 081-分布式中间件 ScheduleMaster的API自定义任务
2022-06-13 03:35:00 【愚公搬代码】
一、API自定义任务
为了方便业务系统更好的接入调度系统,创建任务不仅可以在控制台中实现,系统也提供了WebAPI供业务系统使用代码接入,这种方式对延时任务来说尤其重要。
1.API Server 对接流程
对于开放接口来说,使用签名验证已经是必不可少的一环,这是保证系统安全性的重要手段。看一下核心对接流程:
在控制台中创建好专用的API对接用户账号。
使用对接账号的用户名设置为http header中的
ms_auth_user
值。使用经过哈希运算过的秘钥设置为http header中的
ms_auth_secret值
,计算规则:按{用户名}{hash(密码)}{用户名}的格式拼接得到字符串str,然后再对str做一次hash运算即得到最终秘钥,hash函数是小写的32位MD5算法。使用form格式发起http调用ÿ
边栏推荐
- LeetCode185. All employees with the top three highest wages in the Department (MySQL)
- 【测试开发】文件压缩项目实战
- Union, intersection and difference sets of different MySQL databases
- Part II. S3. intuitionistic fuzzy multi-attribute decision-making method when attribute weight is intuitionistic fuzzy number
- Triggers & built-in packages
- 【测试开发】用例篇
- Doris data aggregation
- LVS four layer load balancing cluster (4) main methods of load balancing
- Determine whether the file encoding format is UTF-8 or GBK
- [azure data platform] ETL tool (2) -- azure data factory "copy data" tool (cloud copy)
猜你喜欢
Tencent cloud instant messaging IM
The latest summary of key topics of journal C in 2022 - topic scope, contribution method and journal introduction
Economic panel topic 1: panel data of all districts and counties in China - more than 70 indicators such as population, pollution and agriculture (2000-2019)
(9) Explain broadcasting mechanism in detail
swap()
Two Chinese vector map data with map review number
Pollution discharge fees of listed companies 2010-2020 & environmental disclosure level of heavy pollution industry - original data and calculation results
MapReduce internal execution principle
Azure SQL db/dw series (12) -- using query store (1) -- report Introduction (1)
Alipay open platform
随机推荐
Batch image Download & socket dialogue
Solve the error in CONDA installation PyMOL
Druid query
Alibaba cloud keep on record
Understand the difference between reducebykey and groupbykey in spark
Configuration and practice of shardingsphere JDBC sub database separation of read and write
UDP connection map collection
Azure SQL db/dw series (13) -- using query store (2) -- report Introduction (2)
MySQL learning summary 10: detailed explanation of view use
Masa Auth - SSO and Identity Design
Spark core concepts: Master, worker, driver program, executor, RDDS
Express 100
Application scenarios of large arrows in Scala
User and permission configuration in SQL Server database to ensure database security
LVS four - tier Load Balancing Cluster (5) LVS Overview
Onnx+tensorrt+yolov5: yolov5 deployment based on trt+onnx 1
H5 jump to mobile app store
China Civil Aviation Statistical Yearbook (1996-2020)
LVS四层负载均衡集群(5)LVS概述
[azure data platform] ETL tool (3) - azure data factory copy from local data source to azure