apache / apache/incubator-pegasus

reduce the number of times of marshall for response

Open
#785 0 comments 2 reactions 0 assignees View on GitHub
type/performance
Dominant language
C++
Stars
2.1k
Forks
328
PR merge metrics
No merged PRs in 30d

Description

## Bug Report

Previously, server will reply a response to client if it receives a request, which will marshall the corresponding response. For a write request from client, all of primary and secondaries will response for it, which means the response's marshall operation is excuted by three times. We can do some optimizations for this situation, and don't marshall response for secondaries.

Given the marshall is heavy cost in cpu and mem, it will improve the throughput of our cluster if we implement these optimizations.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Trace response handling for write requests across primary and secondary replicas, then verify that secondary responses no longer perform marshalling while client behavior and cluster throughput remain correct.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases, distributed-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.