If I send a long string to arduino by serial communication, how many characters can the buffer hold?

Read them as they arrive. The processor is fast compared to the Serial baud rate.
See this tutorial which explains
https://forum.arduino.cc/t/serial-input-basics-updated/382007