This three-stanza poem by Emily Dickinson relies on a number of literary devices for its effectiveness. It begins with an aphorism--a statement of truth expressed in a concise, witty manner. "Success is counted sweetest by those who ne'er succeed" makes a good aphorism because it comments philosophically on success, uses only nine words, and uses alliteration and a variation on the word success to please the ear. Additionally, it contains a touch of irony or paradox. Only those who don't succeed fully appreciate success, according to the poet.
The next two lines use metaphor and a version of synesthesia. Success is compared to nectar, but instead of referring to tasting that nectar, Dickinson uses the word comprehend. Synesthesia is type of figurative language in which what can be appreciated through one sense is described with another, such as describing flowers as melodious. Here, Dickinson uses the brain's ability to understand to mean "appreciate the taste of."
The next two stanzas use analogy to illustrate the aphorism. An analogy is an extended metaphor. Dickinson uses a loss on the battlefield to show that the defeated party appreciates victory in a way that the victor cannot.
Stanza two also makes use of metonymy, which uses something associated with another thing to represent the thing. Here "took the Flag" is a figurative way of saying "won the battle." Obviously merely taking a flag cannot constitute a successful outcome in a war, but the figure of speech is used here to indicate the triumph of the winning side.
Finally, Dickinson uses sound devices in this poem. She uses predominantly iambic trimeter rhythm and meter. Every other line rhymes. Alliteration occurs in lines 1 and 2 with the repeated /s/ sound; lines 3 and 4 with the repeated /n/ sound; line 6 with the repeated /t/ sound; and line 9 with the repeated /d/ sound. Assonance is evident in the first stanza with repeated long /e/ sounds and in the final stanza with repeated long /i/ sounds.
Dickinson skillfully uses figurative language and sound devices to convey her ideas in this brilliant little poem.