You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by YuanSheng Wang <me...@apache.org> on 2020/06/09 00:44:58 UTC
[discuss] add custom extension fields to route, server, and upstream objects.
These objects of APISIX may be managed by a third-party platform, adding
custom extension fields to
allow the third-party management platform to store some personalized data
items.
the `extension` is the new field.
```
{
"uri": "/index.html",
"upstream": {
... ...
},
"extension" {
... ... # allow user to define
}
}'
```
--
*MembPhis*
My GitHub: https://github.com/membphis
Apache APISIX: https://github.com/apache/incubator-apisix
Re: [discuss] add custom extension fields to route, server, and
upstream objects.
Posted by "Li Ling(Lien)" <li...@apache.org>.
Hi YuanSheng.
I think the ETCD data should be hidden for users.
and Can you come up with a scenario or example how user can use this
extension field?
Ming Wen <we...@apache.org> 于2020年6月9日周二 上午9:15写道:
> Hi, yuansheng,
> What data items will stored in this `extension` filed? Can you show same
> examples?
> And how to limit the size of `extension`? Is user can write large data to
> crash etcd?
>
> Thanks,
> Ming Wen, Apache APISIX & Apache SkyWalking
> Twitter: _WenMing
>
>
> YuanSheng Wang <me...@apache.org> 于2020年6月9日周二 上午8:45写道:
>
> > These objects of APISIX may be managed by a third-party platform, adding
> > custom extension fields to
> > allow the third-party management platform to store some personalized data
> > items.
> >
> > the `extension` is the new field.
> >
> > ```
> > {
> > "uri": "/index.html",
> > "upstream": {
> > ... ...
> > },
> > "extension" {
> > ... ... # allow user to define
> > }
> > }'
> > ```
> >
> > --
> >
> > *MembPhis*
> > My GitHub: https://github.com/membphis
> > Apache APISIX: https://github.com/apache/incubator-apisix
> >
>
Re: [discuss] add custom extension fields to route, server, and
upstream objects.
Posted by Ming Wen <we...@apache.org>.
Hi, yuansheng,
What data items will stored in this `extension` filed? Can you show same
examples?
And how to limit the size of `extension`? Is user can write large data to
crash etcd?
Thanks,
Ming Wen, Apache APISIX & Apache SkyWalking
Twitter: _WenMing
YuanSheng Wang <me...@apache.org> 于2020年6月9日周二 上午8:45写道:
> These objects of APISIX may be managed by a third-party platform, adding
> custom extension fields to
> allow the third-party management platform to store some personalized data
> items.
>
> the `extension` is the new field.
>
> ```
> {
> "uri": "/index.html",
> "upstream": {
> ... ...
> },
> "extension" {
> ... ... # allow user to define
> }
> }'
> ```
>
> --
>
> *MembPhis*
> My GitHub: https://github.com/membphis
> Apache APISIX: https://github.com/apache/incubator-apisix
>