ENGLISH

Friendly Webflux: A Practical Guide to Reactive Applications Development with Spring Webflux

Book information

Year
2021
Language
english
Format
PDF
Filesize
3 MB (3656457 bytes)
Edition
1
Pages
\189
Time added
2021-11-20 13:56:07

Description

Table of contents Foreword Acknowledgments Chapter 1. An introduction to reactive programming with Project Reactor Reactive Streams Project Reactor types Create Mono instances Create Mono from plain Java objects Create a failed Mono Use Mono as a wrapper for Java asynchronous types Create Flux instances Create Flux from iterables Create Flux from Streams Mapping patterns Subscribe for events Error handling Merging Summary Chapter 2. Your first Spring Webflux REST API 1. Create a new Spring Boot project 2. Set up profiles 3. Models and data layer 4. Business layer 5. Web layer 6. Fixing an empty response output Summary Chapter 3. Annotated controllers vs router functions Annotated controllers with Spring Webflux Using router functions (handlers) Summary Chapter 4. How to structure Spring Webflux applications Packaging by technical layer Packaging by feature (business domain) Summary Chapter 5. Calling external APIs with the WebClient Create a new WebClient instance Retrieve data Send data Exchange() vs retrieve() Summary Chapter 6. Server-side validation with Yavi An anatomy of a validator pattern Use constraint validations Call the validator Use validators in router functions Summary Chapter 7. CORS handling What does CORS mean? Types of CORS requests Simple requests Preflight requests How to configure CORS in Spring Webflux Approach 1. Using WebFluxConfigurer Approach 2. Using CorsWebFilter Summary Chapter 8. Error handling When do we need to handle errors in Webflux Start from business logic Display http responses in handlers Special case: response on empty result Summary Chapter 9. Authentication patterns in Spring Webflux Creating a handler filter function Applying handler filter functions JWT authentication in Spring Webflux Signup a new user Logging in Multi factor authentication in Spring Webflux Signup a new user Logging in Client side security with Vue.js Create an AuthService Implement a signup flow Implement a login flow Using tokens with protected endpoints Summary Chapter 10. Unit testing in Spring Webflux What is unit testing? Introduction to Project Reactor Test Writing a service testing scenario Testing Spring Webflux router functions Summary Chapter 11. Load testing with Apache JMeter Introduction to Apache JMeter interface Work with test plans Creating new Thread Group Setting up a configuration Adding an HTTP request Adding a listener Running a test plan Summary Chapter 12. Working with NoSQL databases Getting started with a ReactiveMongoRepository Build an extension for a ReactiveMongoRepository Implement custom update functionality Update an entity's field Add to a nested array Remove from a nested array Query by a nested object's field Summary Chapter 13. Immutables and Spring Webflux Why to use immutable objects? Immutable objects with plain Java Immutable objects with Lombok Immutable objects with records Notes on using immutable objects with Jackson Summary Chapter 14. Client side caching What is caching and why to do it Caching patterns Pattern A: API first Pattern B: Local first Pattern C: API after local storage Summary About the author

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix

2008 · PDF