mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #1853] frp可以支持服务注册 服务发现功能吗? #1460
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1460
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luoxue2017 on GitHub (Jun 12, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1853
背景:
微服务过程中,很多服务都是动态启动的,服务启动的时候可以向frpc注册服务,服务之间相互调用时,可以向frpc获取其他服务的请求地址发起请求。
建议:
frpc提供2个api,服务注册,服务发现
服务注册:通过http 向frpc 注册单个服务
服务发现:可以通过http 向frpc 获取所有frps中注册的服务和请求地址
目的:
开发者 在写程序时可以 调用api来注册服务,和请求其它已注册服务(只需要知道服务名即可)
@sshuangliu commented on GitHub (Jun 14, 2020):
这两个需求,如果能原生支持确实很方便,即使不能原生支持,自己也可以写个对frpc配置文件分析功能的函数,然后搭建个api吧
@github-actions[bot] commented on GitHub (Apr 10, 2024):
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.