[Yi]-change the implementation of writer
[Yi]do some refactoring for match service and job writer