[grpc-io] Re: GRPC Serializer does call at the time of GRPC request calling why

2023-05-18 Thread Tripti Kothari
Hi, I am sorry  I am not getting the clarity 

In grpc we have protoserializer  in that there is modelserializer to 
serialize the model query into the json format write.
Now In serializer in django there is serializemethodfield we used to create 
out function to do query into the another table, and that table have the 
reverse foreign key for that in grpc what should I do. can you give me 
suggestion on that.

On Thursday, May 18, 2023 at 11:39:27 PM UTC+5:30 Richard Belleville wrote:

> I'm still not 100% sure I understand, but I'll try to clarify my 
> assumptions as I go.
>
> > when we want to serialize the we sent it to the protoserrializer file
>
> I'm assuming this means that you're using a custom response serializer 
> 
>  
> via this keyword argument of the RpcMethodHandler class. "protoserializer" 
> is not a file I am familiar with in either the gRPC or protobuf projects, 
> so I'm guessing this is your own file and probably your custom serializer.
>
> I'm not sure why you would be using a custom serializer if all you want to 
> do is serialize protobufs though. That's the behavior of the default 
> serializer.
>
> > why does function call only when server get refresh it whenever I invoke 
> the API request at that my serializer  does not call
>
> I'm really not sure what you mean by "refresh" here. gRPC servers have no 
> refresh method. If you are using your own RpcMethodHandler with a custom 
> response serializer, then it will be invoked every time you return a 
> response in your server handler.
>
> > about the custom method Serializer
>
> The capitalization of "Serializer" here is throwing me. There is no 
> "Serializer method" in the gRPC Python API surface, nor do we have any 
> methods that are capitalized, but individual proto files _do_ capitalize 
> all of their methods. Is this a particular RPC method that your or another 
> member of your organization has written into a proto file?
> On Thursday, May 18, 2023 at 10:58:22 AM UTC-7 Tripti Kothari wrote:
>
>>
>> HI  in GRPC when we want to serialize the we sent it to the 
>> protoserrializer file in python right why does function call only when 
>> server get refresh it whenever I invoke the API request at that my 
>> serializer  does not call why it happen like this and I want to ask about 
>> the custom method Serializer in grpc python  I hope my issue now is clear
>> On Thursday, May 18, 2023 at 11:19:19 PM UTC+5:30 Richard Belleville 
>> wrote:
>>
>>> I'm not clear on what the issue is exactly. Can you please add some more 
>>> detail here?
>>>
>>> On Wednesday, May 17, 2023 at 11:24:51 PM UTC-7 Tripti Kothari wrote:
>>>

 HI we are using python for grpc as a server and client both
 On Thursday, May 18, 2023 at 1:24:33 AM UTC+5:30 Zach Reyes wrote:

> What language are you using? Can you please provide more information? 
> I don't know what pdb is referring to.
>
> On Monday, May 15, 2023 at 7:45:10 AM UTC-4 Joseph Anjilimoottil wrote:
>
>> Hi Guys,
>> I am working on the project and i want to do  nested serializer  and 
>> in that i want  to do data filtering based on the request while API 
>> calling 
>> but the pdb does not hit but while saving it hit the pdb  in the 
>> serialize 
>> why.
>>
>> can you please give me answer on these questions
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/bf981b4d-3d16-4c93-aef9-863ccb836ff6n%40googlegroups.com.


[grpc-io] Re: GRPC Serializer does call at the time of GRPC request calling why

2023-05-18 Thread 'Richard Belleville' via grpc.io
I'm still not 100% sure I understand, but I'll try to clarify my 
assumptions as I go.

> when we want to serialize the we sent it to the protoserrializer file

I'm assuming this means that you're using a custom response serializer 

 
via this keyword argument of the RpcMethodHandler class. "protoserializer" 
is not a file I am familiar with in either the gRPC or protobuf projects, 
so I'm guessing this is your own file and probably your custom serializer.

I'm not sure why you would be using a custom serializer if all you want to 
do is serialize protobufs though. That's the behavior of the default 
serializer.

> why does function call only when server get refresh it whenever I invoke 
the API request at that my serializer  does not call

I'm really not sure what you mean by "refresh" here. gRPC servers have no 
refresh method. If you are using your own RpcMethodHandler with a custom 
response serializer, then it will be invoked every time you return a 
response in your server handler.

> about the custom method Serializer

The capitalization of "Serializer" here is throwing me. There is no 
"Serializer method" in the gRPC Python API surface, nor do we have any 
methods that are capitalized, but individual proto files _do_ capitalize 
all of their methods. Is this a particular RPC method that your or another 
member of your organization has written into a proto file?
On Thursday, May 18, 2023 at 10:58:22 AM UTC-7 Tripti Kothari wrote:

>
> HI  in GRPC when we want to serialize the we sent it to the 
> protoserrializer file in python right why does function call only when 
> server get refresh it whenever I invoke the API request at that my 
> serializer  does not call why it happen like this and I want to ask about 
> the custom method Serializer in grpc python  I hope my issue now is clear
> On Thursday, May 18, 2023 at 11:19:19 PM UTC+5:30 Richard Belleville wrote:
>
>> I'm not clear on what the issue is exactly. Can you please add some more 
>> detail here?
>>
>> On Wednesday, May 17, 2023 at 11:24:51 PM UTC-7 Tripti Kothari wrote:
>>
>>>
>>> HI we are using python for grpc as a server and client both
>>> On Thursday, May 18, 2023 at 1:24:33 AM UTC+5:30 Zach Reyes wrote:
>>>
 What language are you using? Can you please provide more information? I 
 don't know what pdb is referring to.

 On Monday, May 15, 2023 at 7:45:10 AM UTC-4 Joseph Anjilimoottil wrote:

> Hi Guys,
> I am working on the project and i want to do  nested serializer  and 
> in that i want  to do data filtering based on the request while API 
> calling 
> but the pdb does not hit but while saving it hit the pdb  in the 
> serialize 
> why.
>
> can you please give me answer on these questions
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/2fa57f5a-ed1f-483a-b4ea-77605b4cf961n%40googlegroups.com.


[grpc-io] Re: GRPC Serializer does call at the time of GRPC request calling why

2023-05-18 Thread Tripti Kothari

HI  in GRPC when we want to serialize the we sent it to the 
protoserrializer file in python right why does function call only when 
server get refresh it whenever I invoke the API request at that my 
serializer  does not call why it happen like this and I want to ask about 
the custom method Serializer in grpc python  I hope my issue now is clear
On Thursday, May 18, 2023 at 11:19:19 PM UTC+5:30 Richard Belleville wrote:

> I'm not clear on what the issue is exactly. Can you please add some more 
> detail here?
>
> On Wednesday, May 17, 2023 at 11:24:51 PM UTC-7 Tripti Kothari wrote:
>
>>
>> HI we are using python for grpc as a server and client both
>> On Thursday, May 18, 2023 at 1:24:33 AM UTC+5:30 Zach Reyes wrote:
>>
>>> What language are you using? Can you please provide more information? I 
>>> don't know what pdb is referring to.
>>>
>>> On Monday, May 15, 2023 at 7:45:10 AM UTC-4 Joseph Anjilimoottil wrote:
>>>
 Hi Guys,
 I am working on the project and i want to do  nested serializer  and in 
 that i want  to do data filtering based on the request while API calling 
 but the pdb does not hit but while saving it hit the pdb  in the serialize 
 why.

 can you please give me answer on these questions



-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/bf70c796-ff80-4727-b053-70228fe4579fn%40googlegroups.com.


[grpc-io] Re: GRPC Serializer does call at the time of GRPC request calling why

2023-05-18 Thread 'Richard Belleville' via grpc.io
I'm not clear on what the issue is exactly. Can you please add some more 
detail here?

On Wednesday, May 17, 2023 at 11:24:51 PM UTC-7 Tripti Kothari wrote:

>
> HI we are using python for grpc as a server and client both
> On Thursday, May 18, 2023 at 1:24:33 AM UTC+5:30 Zach Reyes wrote:
>
>> What language are you using? Can you please provide more information? I 
>> don't know what pdb is referring to.
>>
>> On Monday, May 15, 2023 at 7:45:10 AM UTC-4 Joseph Anjilimoottil wrote:
>>
>>> Hi Guys,
>>> I am working on the project and i want to do  nested serializer  and in 
>>> that i want  to do data filtering based on the request while API calling 
>>> but the pdb does not hit but while saving it hit the pdb  in the serialize 
>>> why.
>>>
>>> can you please give me answer on these questions
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/471800b8-96ec-4657-998b-0cbb090db8c6n%40googlegroups.com.


[grpc-io] Re: GRPC Serializer does call at the time of GRPC request calling why

2023-05-17 Thread Tripti Kothari

HI we are using python for grpc as a server and client both
On Thursday, May 18, 2023 at 1:24:33 AM UTC+5:30 Zach Reyes wrote:

> What language are you using? Can you please provide more information? I 
> don't know what pdb is referring to.
>
> On Monday, May 15, 2023 at 7:45:10 AM UTC-4 Joseph Anjilimoottil wrote:
>
>> Hi Guys,
>> I am working on the project and i want to do  nested serializer  and in 
>> that i want  to do data filtering based on the request while API calling 
>> but the pdb does not hit but while saving it hit the pdb  in the serialize 
>> why.
>>
>> can you please give me answer on these questions
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/0592ea5d-e26a-4f99-9105-2d3344418b5cn%40googlegroups.com.


[grpc-io] Re: GRPC Serializer does call at the time of GRPC request calling why

2023-05-17 Thread 'Zach Reyes' via grpc.io
What language are you using? Can you please provide more information? I 
don't know what pdb is referring to.

On Monday, May 15, 2023 at 7:45:10 AM UTC-4 Joseph Anjilimoottil wrote:

> Hi Guys,
> I am working on the project and i want to do  nested serializer  and in 
> that i want  to do data filtering based on the request while API calling 
> but the pdb does not hit but while saving it hit the pdb  in the serialize 
> why.
>
> can you please give me answer on these questions
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/3e09bf84-cb17-4c6b-9931-2921131e70c2n%40googlegroups.com.