Re: [Dev] Are Binary and Thrift protocols used in WSO2 API Manager, WSO2 Specific?

2018-07-21 Thread Randy Adams
Thanks @vidura...@wso2.com & @dusha...@wso2.com,

BTW what I am confused most is the usage of 'Binary' type for Throttle data
publishing as mentioned in Gateway, in api-manager.xml as belows.


true

true
Binary
tcp://[Traffic-Manager-host]:9611
ssl://[Traffic-Manager-host]:9711
...

And eventhough @dusha...@wso2.com has mentioned that Thrift is a Binary
protocol, below configuration in
wso2am-2.1.0/repository/conf/data-bridge/data-bridge-config.xml confuses me.


..
..

7611
7711





9611
9711
100
100






So it is like, API Manager uses tcp port 7611 for Thrift and tcp port 9611
for Binary. So probably Thirft and Binary are two different protocols. I
would like to find a comparison between these two. And I am searching for a
reference about this 'Binary' type as mentioned above.

Highly appreciate a response on this issue.

Thanks

On Mon, Jul 16, 2018 at 10:17 AM, Viduranga Gunarathne 
wrote:

> Hi Randy,
>
> As @Dushani Wellappili  has mentioned, WSO2 API
> Manager mainly uses the *Thrift *and *WebService* protocols for
> communication. (Eg: Communication between Gateway and Key Manager in an API
> Manager distributed deployment).
>
> However, Thrift is not recommended to be used in a production environment,
> specifically when fronting a key manager cluster by a load balancer such as
> Nginx+. The reason for this is that most of the load balancers do not have
> session-awareness. Hence it is recommended to use *WSClient *intead of
> * Thrift.*
>
> *Thrift * is a service released as an open source Apache project and it
> was designed to compete with *SOAP * and *REST*. It was introduced with
> the intention of including
>
>- Scalability
>- Simplicity
>- Speed
>- Evolution
>
> Please find the below resources in addition to the ones stated by Dushani,
>
> [1] https://wso2.com/library/articles/2015/01/wso2-api-manager-deployment-
> customization-and-troubleshooting-part-02/
> [2] https://nordicapis.com/microservice-showdown-rest-vs-
> soap-vs-apache-thrift-and-why-it-matters/
>
> Thanks,
> Viduranga.
>
> On Thu, Jul 12, 2018 at 8:51 PM Dushani Wellappili 
> wrote:
>
>> Hi Randy,
>>
>> WSO2 API Manager uses either Apache Thrift [1] [2] [3] which is a binary
>> communication protocol or Web Service calls for the communication between
>> gateway and key manager. The default communication protocol of key manager
>> is Thrift. You can find more information on that from here
>> <http://thrift.apache.org/static/files/thrift-20070401.pdf> as well.
>>
>> [1] https://en.wikipedia.org/wiki/Apache_Thrift
>> [2] https://thrift.apache.org/
>> [3] https://github.com/apache/thrift
>>
>>
>> Regards,
>>
>> *Dushani Wellappili*
>> Software Engineer - WSO2
>>
>> Email : dusha...@wso2.com
>> Mobile : +94779367571
>> Web : https://wso2.com/
>>
>>
>>
>>
>> On Thu, Jul 12, 2018 at 11:11 AM Randy Adams 
>> wrote:
>>
>>> Hi devs,
>>>
>>> When reading through wso2 documentation I see that two protocols called
>>> 'Thrift' and 'Binary' are used for certain communication scenarios in API
>>> Manager. i.e. Throttle data publishing, Key Validation. [1]
>>>
>>> But I cannot see any outside external sources about these two protocols.
>>> So are these two protocols, just WSO2 Specific ( introduced by WSO2) ? If
>>> not, please provide references describing about these two protocols.
>>>
>>> [1] https://docs.wso2.com/display/AM210/Deploying+WSO2+API-M+in+
>>> a+Distributed+Setup#single-Key-Manager-GW
>>>
>>> --
>>> Thanks & Regards,
>>> Randy
>>> ___
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>
>
> --
> Regards*,*
> *Viduranga Gunarathne*
> *Software Engineer*
> *WSO2 (Pvt) Ltd.*
>
> *Mobile : *+94712437484
> *Email   : *vidura...@wso2.com
> *Web : *http://wso2.com
> *Blog: *http://medium.com/vlgunarathne
> <http://wso2.com/signature>
>



-- 
Thanks & Regards,
Randy
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Are Binary and Thrift protocols used in WSO2 API Manager, WSO2 Specific?

2018-07-11 Thread Randy Adams
Hi devs,

When reading through wso2 documentation I see that two protocols called
'Thrift' and 'Binary' are used for certain communication scenarios in API
Manager. i.e. Throttle data publishing, Key Validation. [1]

But I cannot see any outside external sources about these two protocols. So
are these two protocols, just WSO2 Specific ( introduced by WSO2) ? If not,
please provide references describing about these two protocols.

[1]
https://docs.wso2.com/display/AM210/Deploying+WSO2+API-M+in+a+Distributed+Setup#single-Key-Manager-GW

-- 
Thanks & Regards,
Randy
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] Difference between primary and secondary use stores

2018-03-15 Thread Randy Adams
Hi Lahiru,

Thank you very much for the detailed clarification.

Regards,
Randy

On Thu, Mar 15, 2018 at 1:52 AM, Lahiru Sandaruwan <lahi...@wso2.com> wrote:

> Hi Randy,
>
> Please find the answers inline,
>
> On Wed, Mar 14, 2018 at 9:45 PM, Randy Adams <randyadamspar...@gmail.com>
> wrote:
>
>> Hi devs,
>>
>> I have some confusion on user store types in wso2 products. Please give
>> some assistance.
>>
>> What is the difference between primary and secondary user stores in wso2
>> products?
>>
>
> ​Primary userstore​
>
> WSO2 products must have at least one user store. This is the main user
> store and it is shared among all the tenants. Please find the more info
> from [1]. If you want to learn about tenancy in WSO2 products, read [2]
> Also, admin user of the super tenant(default tenent of WSO2 products),
> which is defined in [WSO2_Product_Home]/repository/conf/user-mgt.xml will
> reside in primary userstore.
> Read more about system administrator user at [3].
> From [1],
> "This is the main user store that is shared among all the tenants in the
> system. Only one user store should be configured as the primary user store"
>
> Secondary userstores
>
> Secondary user stores are helpful when your organization has different
> sources of users due to departments, company mergers/ acquisitions etc. So
> if you have different tenants, you mount the secondary user stores for each
> tenant separately.
> Find more details from [1]. Following quote is copied from there for your
> reference.
> "Any number of secondary user stores can be easily set up for your system
> and these user stores are specific to the created tenant, and they are not
> shared among multiple tenants."
>
>
>> What is the exact requirement to have two different types of user stores
>> as this? Why isn't it just "user stores" generally?
>>
>
> Primary needs to be identified separately for above said functionalities.
> ​
>
>> What are the different tasks done by these two categories?
>>
>
> ​Both types have all the functionalities other than above said
> differences. I have included IAM team to add to the details provided
>
> [1] https://docs.wso2.com/display/IS541/Configuring+User+Stores
> [2] https://docs.wso2.com/display/IS541/Creating+and+Managing+Tenants
> [3] https://docs.wso2.com/display/IS541/Configuring+the+Syst
> em+Administrator
>
> ​Thanks.​
>
>>
>> Regards,
>> Randy
>>
>> ___
>> Dev mailing list
>> Dev@wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> --
>
> Lahiru Sandaruwan
> WSO2 Inc., http://wso2.com
>
> lean.enterprise.middleware
>
> m: +1 901 530 2379 <+1%20901-530-2379>
> e: lahi...@wso2.com b: https://medium.com/@lahirugmg
> in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] Difference between primary and secondary use stores

2018-03-14 Thread Randy Adams
Hi devs,

I have some confusion on user store types in wso2 products. Please give
some assistance.

What is the difference between primary and secondary user stores in wso2
products?
What is the exact requirement to have two different types of user stores as
this? Why isn't it just "user stores" generally?
What are the different tasks done by these two categories?

Regards,
Randy
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev