mosec icon indicating copy to clipboard operation
mosec copied to clipboard

[FEATURE] add more useful worker classes

Open kemingy opened this issue 3 years ago • 4 comments

So far, there is only one Worker base type with JSON serialization and Pickle IPC serialization.

  • [ ] #139
  • [x] #140

kemingy avatar May 21 '22 14:05 kemingy

I think we can add some docs for the worker types. I did not get the differences between JSON and Pickle before we discussed them offline.

gaocegege avatar May 22 '22 01:05 gaocegege

I think we can add some docs for the worker types. I did not get the differences between JSON and Pickle before we discussed them offline.

Yeah. Although we have the doc, but it's not straightforward. I'm planning to draw a flowchart to demonstrate the main features.

kemingy avatar May 22 '22 01:05 kemingy

BTW, it should be a mixin. Check https://stackoverflow.com/a/547714

kemingy avatar May 25 '22 07:05 kemingy

BTW, it should be a mixin. Check https://stackoverflow.com/a/547714

Yea agree, this looks better.

lkevinzc avatar May 25 '22 08:05 lkevinzc