Coffee does lose flavor after roasting. It's probably best to consume your coffee within a month of roasting. But it can still taste fine three months later. It depends how discriminating you are. There is the tradeoff of buying smaller amounts more frequently and the cost and bother of shipping. There are many opinions about this topic. This blog post has links if you want to read more on the topic: