Batch fermentation and continuous fermentation